/* =========================================================
   NISARG GARDEN RESTAURANT - AI REVIEW GENERATOR STYLES
   ========================================================= */

:root {
  --bg-dark: #070c09;
  --bg-card: #0e1711;
  --bg-card-elevated: #142119;
  --bg-glass: rgba(14, 23, 17, 0.85);
  
  --gold-primary: #e5a93c;
  --gold-hover: #f3be5d;
  --gold-light: rgba(229, 169, 60, 0.15);
  --gold-border: rgba(229, 169, 60, 0.3);
  
  --text-main: #f0f4f1;
  --text-muted: #9bb0a2;
  --text-dim: #607567;
  
  --emerald-accent: #2e603d;
  --emerald-glow: rgba(46, 96, 61, 0.4);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 30px rgba(229, 169, 60, 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(229, 169, 60, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(46, 96, 61, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(229, 169, 60, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Container */
.review-app-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.top-bar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.back-home-btn, .settings-btn, .standee-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.back-home-btn:hover, .settings-btn:hover, .standee-btn:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: var(--bg-card-elevated);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-logo-small {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(229, 169, 60, 0.2));
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.live-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid var(--gold-border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.google-icon-svg {
  width: 15px;
  height: 15px;
}

.stars-row {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

/* Main Card */
.review-canvas-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.review-canvas-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(229, 169, 60, 0.12);
}

.rating-display-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars-interactive {
  display: flex;
  gap: 3px;
  color: #fbbf24;
  font-size: 1.25rem;
}

.perfect-score-tag {
  background: rgba(46, 96, 61, 0.35);
  color: #7ee787;
  border: 1px solid rgba(126, 231, 135, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.ai-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ai-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Review Text Area Container */
.review-textarea-wrap {
  position: relative;
  margin-bottom: 18px;
}

.review-textarea {
  width: 100%;
  min-height: 170px;
  background: #090e0b;
  border: 1px solid rgba(229, 169, 60, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #f0f4f1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  transition: var(--transition);
}

.review-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.15);
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.edit-hint {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Action Buttons */
.main-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-post-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #e5a93c 0%, #d49320 100%);
  color: #090e0b;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  width: 100%;
}

.btn-post-google:hover {
  background: linear-gradient(135deg, #f3be5d 0%, #e5a93c 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(229, 169, 60, 0.35);
}

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

.btn-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-card-elevated);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Top Multi-Select Highlights Section */
.custom-tags-section {
  margin-bottom: 20px;
}

.top-tags-section {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tags-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-label-small {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.tags-selected-count {
  background: var(--gold-primary);
  color: #090e0b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: none;
}

.tags-selected-count.visible {
  display: inline-block;
}

.btn-clear-tags {
  background: transparent;
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: var(--text-dim);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-tags:hover {
  color: #ff7b72;
  border-color: #ff7b72;
}

.tags-scroll-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vibe-tag {
  background: var(--bg-card);
  border: 1px solid rgba(229, 169, 60, 0.2);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.vibe-tag:hover {
  border-color: var(--gold-primary);
  color: var(--text-main);
  background: var(--bg-card-elevated);
}

.vibe-tag.active {
  background: rgba(229, 169, 60, 0.2);
  border-color: var(--gold-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(229, 169, 60, 0.25);
}

.vibe-tag.active::after {
  content: '✓';
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 2px;
}

/* 3 Step Instruction Guide */
.steps-guide-card {
  margin-top: 28px;
  background: rgba(14, 23, 17, 0.5);
  border: 1px solid rgba(229, 169, 60, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.15);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-item strong {
  color: var(--text-main);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111a14;
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 169, 60, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Modals & Drawers */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 6, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-icon:hover {
  color: var(--text-main);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==================== LUXURY TABLE STANDEE CARD STYLING ==================== */
.standee-luxury-card {
  background: #ffffff;
  color: #111a14;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  border: 3px solid #e5a93c;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

/* Standee Header */
.standee-top-header {
  background: linear-gradient(135deg, #09130d 0%, #132418 100%);
  padding: 16px 16px 12px;
  border-bottom: 2px solid #e5a93c;
  color: #fff;
}

.standee-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.standee-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(229, 169, 60, 0.4));
}

.standee-brand-text-wrap {
  text-align: left;
}

.standee-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 60%, #e5a93c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.standee-brand-subtitle {
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  color: var(--gold-primary);
  font-weight: 700;
  display: block;
}

.standee-tagline-text {
  font-size: 0.72rem;
  color: #b9d0c1;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* Google 5-Star Ribbon */
.standee-google-ribbon {
  background: #fdfbf7;
  padding: 8px 12px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #f0e6d2;
}

.standee-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #202124;
}

.standee-stars {
  color: #ea8e00;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.standee-rating-num {
  color: #444;
  font-size: 0.76rem;
}

/* Standee QR Frame */
.standee-qr-frame {
  padding: 16px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
}

.standee-qr-box {
  display: inline-flex;
  padding: 12px;
  background: #ffffff;
  border: 2px solid #09130d;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.standee-qr-box canvas, .standee-qr-box img {
  display: block;
  width: 150px;
  height: 150px;
}

.standee-scan-badge {
  background: #111a14;
  color: #e5a93c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5a93c;
  display: inline-block;
}

/* Standee Body Content */
.standee-body-content {
  padding: 6px 16px 14px;
}

.standee-headline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c1a10;
  margin-bottom: 3px;
}

.standee-sub-headline {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a472a;
  margin-bottom: 8px;
}

.standee-perks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #555555;
}

/* Standee Footer */
.standee-footer-info {
  background: #09130d;
  color: #d1dfd5;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 8px 10px;
  letter-spacing: 0.5px;
}

/* Modal Action Buttons */
.standee-actions-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

/* Settings Form */
.form-input-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: #090e0b;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}

/* ==================== PRINT CSS ENGINE ==================== */
@media print {
  @page {
    margin: 0.5cm;
    size: portrait;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
    background-image: none !important;
  }

  body * {
    visibility: hidden;
  }

  .modal-backdrop.active, 
  .modal-backdrop.active .standee-luxury-card, 
  .modal-backdrop.active .standee-luxury-card * {
    visibility: visible;
  }

  .modal-backdrop.active {
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    display: block;
  }

  .modal-window {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
    max-width: 100%;
    margin: 0 auto;
  }

  .modal-close-icon, 
  .modal-title, 
  .modal-subtitle, 
  .standee-actions-row {
    display: none !important;
  }

  .standee-luxury-card {
    border: 3px solid #e5a93c !important;
    box-shadow: none !important;
    margin: 20px auto !important;
    width: 360px !important;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .standee-top-header {
    background: #09130d !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .standee-footer-info {
    background: #09130d !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .review-app-container {
    padding: 16px 14px 40px;
  }
  .review-canvas-card {
    padding: 18px 16px;
  }
  .btn-secondary-row {
    grid-template-columns: 1fr;
  }
}
