/**
 * Ohio Beer Path - Rating Form Styles
 * 
 * Styles for the standalone beer rating form page
 */

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      min-height: 100vh;
      color: #fff;
      padding-bottom: env(safe-area-inset-bottom);
    }

    /* Header */
    .header {
      background: rgba(255,255,255,0.05);
      backdrop-filter: blur(10px);
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .back-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      border: none;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .back-btn:hover {
      background: rgba(255,255,255,0.2);
    }

    .brewery-info {
      flex: 1;
    }

    .brewery-name {
      font-size: 16px;
      font-weight: 600;
    }

    .brewery-location {
      font-size: 12px;
      opacity: 0.7;
    }

    /* Camera Section */
    .camera-section {
      position: relative;
      background: #000;
      aspect-ratio: 4/3;
      max-height: 50vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .camera-preview {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .photo-preview {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #000;
    }

    .camera-placeholder {
      text-align: center;
      color: rgba(255,255,255,0.5);
    }

    .camera-placeholder i {
      font-size: 64px;
      margin-bottom: 12px;
    }

    .camera-controls {
      position: absolute;
      bottom: 20px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 32px;
    }

    .capture-btn {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: #fff;
      border: 4px solid rgba(255,255,255,0.3);
      cursor: pointer;
      transition: transform 0.1s, box-shadow 0.2s;
      position: relative;
    }

    .capture-btn::after {
      content: '';
      position: absolute;
      inset: 4px;
      border-radius: 50%;
      background: #fff;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(0.95); opacity: 0.8; }
    }

    .capture-btn:active {
      transform: scale(0.95);
    }

    .camera-action-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(0,0,0,0.5);
      border: none;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .skip-photo {
      position: absolute;
      top: 16px;
      right: 16px;
      background: rgba(0,0,0,0.5);
      border: none;
      color: #fff;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      cursor: pointer;
    }

    .photo-mode-toggle {
      position: absolute;
      top: 16px;
      left: 16px;
      background: rgba(0,0,0,0.5);
      border: none;
      color: #fff;
      padding: 8px 12px;
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Form Section */
    .form-section {
      padding: 24px 16px;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 8px;
      color: rgba(255,255,255,0.8);
    }

    .form-input {
      width: 100%;
      padding: 14px 16px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 12px;
      color: #fff;
      font-size: 16px;
      transition: border-color 0.2s, background 0.2s;
    }

    .form-input:focus {
      outline: none;
      border-color: #fbbf24;
      background: rgba(255,255,255,0.15);
    }

    .form-input::placeholder {
      color: rgba(255,255,255,0.4);
    }

    .form-select {
      width: 100%;
      padding: 14px 16px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 12px;
      color: #fff;
      font-size: 16px;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px;
    }

    .form-select:focus {
      outline: none;
      border-color: #fbbf24;
    }

    /* Star Rating */
    .star-rating {
      display: flex;
      gap: 8px;
      justify-content: center;
      margin: 16px 0;
    }

    .star {
      font-size: 40px;
      color: rgba(255,255,255,0.3);
      cursor: pointer;
      transition: color 0.15s, transform 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .star:hover,
    .star.active {
      color: #fbbf24;
      transform: scale(1.1);
    }

    .star.active {
      animation: star-pop 0.3s ease;
    }

    @keyframes star-pop {
      0% { transform: scale(1); }
      50% { transform: scale(1.3); }
      100% { transform: scale(1.1); }
    }

    .rating-labels {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      padding: 0 8px;
    }

    /* Textarea */
    .form-textarea {
      width: 100%;
      padding: 14px 16px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 12px;
      color: #fff;
      font-size: 16px;
      resize: none;
      min-height: 100px;
    }

    .form-textarea:focus {
      outline: none;
      border-color: #fbbf24;
      background: rgba(255,255,255,0.15);
    }

    /* Privacy Toggle */
    .privacy-toggle {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: rgba(255,255,255,0.05);
      border-radius: 12px;
    }

    .toggle-switch {
      width: 48px;
      height: 28px;
      background: rgba(255,255,255,0.2);
      border-radius: 14px;
      position: relative;
      cursor: pointer;
      transition: background 0.2s;
    }

    .toggle-switch.active {
      background: #10b981;
    }

    .toggle-switch::after {
      content: '';
      position: absolute;
      width: 24px;
      height: 24px;
      background: #fff;
      border-radius: 50%;
      top: 2px;
      left: 2px;
      transition: transform 0.2s;
    }

    .toggle-switch.active::after {
      transform: translateX(20px);
    }

    .toggle-label {
      flex: 1;
    }

    .toggle-label-title {
      font-weight: 500;
    }

    .toggle-label-desc {
      font-size: 12px;
      color: rgba(255,255,255,0.5);
    }

    /* Submit Button */
    .submit-btn {
      width: 100%;
      padding: 18px;
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      border: none;
      border-radius: 16px;
      color: #fff;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 24px;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .submit-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    }

    .submit-btn:active {
      transform: translateY(0);
    }

    .submit-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Login Required */
    .login-required {
      text-align: center;
      padding: 48px 24px;
    }

    .login-required i {
      font-size: 64px;
      color: #fbbf24;
      margin-bottom: 16px;
    }

    .login-required h2 {
      margin-bottom: 8px;
    }

    .login-required p {
      color: rgba(255,255,255,0.6);
      margin-bottom: 24px;
    }

    .login-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      background: #ffc107;
      color: #000;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
    }

    /* Success Animation */
    .success-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.9);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      flex-direction: column;
    }

    .success-overlay.show {
      display: flex;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .success-icon {
      font-size: 80px;
      color: #10b981;
      animation: bounceIn 0.5s ease;
    }

    @keyframes bounceIn {
      0% { transform: scale(0); }
      50% { transform: scale(1.2); }
      100% { transform: scale(1); }
    }

    .success-text {
      font-size: 24px;
      font-weight: 600;
      margin-top: 16px;
    }

    .share-buttons {
      display: flex;
      gap: 12px;
      margin-top: 32px;
    }

    .share-btn {
      padding: 12px 20px;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: transform 0.2s;
    }

    .share-btn:hover {
      transform: scale(1.05);
    }

    .share-btn.untappd {
      background: #ffc107;
      color: #000;
    }

    .share-btn.ratebeer {
      background: #c0392b;
      color: #fff;
    }

    .share-btn.more {
      background: rgba(255,255,255,0.2);
      color: #fff;
    }

    .close-success {
      margin-top: 24px;
      color: rgba(255,255,255,0.6);
      background: none;
      border: none;
      font-size: 16px;
      cursor: pointer;
    }

    /* File input hidden */
    .file-input {
      display: none;
    }
