/* ═══════════════════════════════════════════
   SuperPrompt — Dynamic State Styles
   Supplements existing Tailwind CSS classes
   ═══════════════════════════════════════════ */

/* Loading spinner inside generate button */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Score pills after generation */
.score-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.score-pill {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #16A34A;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}

/* Active nav link */
.nav-link.active {
  color: #0066FF !important;
  font-weight: 600;
  border-bottom: 2px solid #0066FF;
  padding-bottom: 4px;
}

/* Type card selected state */
.type-card {
  cursor: pointer;
  transition: all 0.2s ease;
}
.type-card:hover {
  border-color: #0066FF !important;
}
.type-card.selected {
  background: #EEF3FF !important;
  border: 1.5px solid #0066FF !important;
  color: #0066FF !important;
}

/* Tone chip selected state */
.tone-chip {
  cursor: pointer;
  transition: all 0.2s ease;
}
.tone-chip.selected {
  background: #0066FF !important;
  border-color: #0066FF !important;
  color: white !important;
}

/* Detail option selected state */
.detail-option {
  cursor: pointer;
  transition: all 0.2s ease;
}
.detail-option.selected {
  background: #0A0A0F !important;
  color: white !important;
}

/* Billing toggle active state */
.billing-toggle {
  cursor: pointer;
  transition: all 0.2s ease;
}
.billing-toggle.active {
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  color: #0A0A0F;
}

/* Pulsing status dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.active {
  background: #16A34A;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Output block styling */
.output-block {
  transition: all 0.2s ease;
}
.output-block:hover {
  transform: translateX(2px);
}

/* Copy button transition */
.copy-btn {
  transition: all 0.2s ease;
}
.copy-btn:hover {
  opacity: 0.8;
}

/* FAQ accordion */
.faq-item {
  transition: all 0.2s ease;
}
.faq-question {
  cursor: pointer;
  user-select: none;
}
.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Textarea focus state */
#rough-idea:focus {
  outline: none;
  border-color: #0066FF !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Generate button hover */
#generate-btn {
  transition: all 0.2s ease;
}
#generate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}
#generate-btn:disabled {
  cursor: not-allowed;
}

/* Variant card hover */
.variant-card {
  cursor: pointer;
  transition: all 0.2s ease;
}
.variant-card:hover {
  border-color: #0066FF !important;
  transform: translateY(-2px);
}

/* User avatar dropdown animation */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Avatar button pulse on first load */
.sp-avatar-btn {
  animation: avatarPop 0.3s ease;
}
@keyframes avatarPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════
   MOBILE HEADER BAR (shown on mobile when desktop nav is hidden)
   ══════════════════════════════════════════════ */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #E4E4E7;
  position: sticky;
  top: 0;
  z-index: 100;
}
.mobile-header-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0A0A0F;
  text-decoration: none;
}
.mobile-header-logo span { color: #0066FF; }
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-btn:hover { background: #F7F7F8; }
.mobile-menu-btn svg { width: 22px; height: 22px; stroke: #0A0A0F; }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 201;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateX(0);
}
.mobile-nav-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 22px;
  color: #71717A;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 12px;
}
.mobile-nav-close:hover { background: #F7F7F8; }
.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #52525B;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s;
}
.mobile-nav-link:hover { background: #F7F7F8; color: #0A0A0F; }
.mobile-nav-link.active { color: #0066FF; background: #EEF3FF; }
.mobile-nav-divider { height: 1px; background: #E4E4E7; margin: 8px 0; }
.mobile-nav-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: #0066FF;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: opacity 0.15s;
}
.mobile-nav-cta:hover { opacity: 0.9; }

@media (max-width: 768px) {
  .mobile-header { display: flex; }

  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; }

  /* Landing page mobile tweaks */
  .hero-display, [class*="text-hero-display"] {
    font-size: 36px !important;
    line-height: 1.15 !important;
  }
  [class*="text-h1"] { font-size: 32px !important; }
  [class*="text-h2"] { font-size: 22px !important; }
  [class*="py-\\[120px\\]"] { padding-top: 60px !important; padding-bottom: 60px !important; }
}

/* ══════════════════════════════════════════════
   PREMIUM GLOBAL VARIABLES & UTIL CLASSES
   ══════════════════════════════════════════════ */
:root {
  --primary: #0066FF;
  --primary-dim: rgba(0, 102, 255, 0.08);
  --primary-glow: rgba(0, 102, 255, 0.15);
  --border: #E4E4E7;
  --bg: #FAF8FF;
  --card: #FFFFFF;
  --text-dark: #09090B;
  --text-muted: #71717A;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 36px rgba(0,102,255,0.05), 0 4px 12px rgba(0,0,0,0.03);
}

/* Page entrance smooth fade */
.page-fade-in {
  opacity: 0;
  animation: pageFadeInEffect 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageFadeInEffect {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium Card Outline & Soft shadow */
.premium-card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.premium-card:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-3px);
}

/* Simulated Browser Mockup Window Wrapper */
.mockup-window {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.mockup-header {
  background: #F4F4F5;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dot.red { background: #FF5F56; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #27C93F; }
.mockup-address {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 4px;
  font-size: 10px;
  color: #71717A;
  text-align: center;
  padding: 2px 0;
  max-width: 280px;
  margin: 0 auto;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Premium Media Preview inside cards */
.mockup-media-container {
  position: relative;
  background: #F8FAFC;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-media-container img, 
.mockup-media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.premium-card:hover .mockup-media-container img,
.premium-card:hover .mockup-media-container video {
  transform: scale(1.04);
}

/* Category pills */
.badge-web { background: #EEF2F6 !important; color: #1D4ED8 !important; border: 1px solid #DBEAFE !important; }
.badge-app { background: #ECFDF5 !important; color: #047857 !important; border: 1px solid #D1FAE5 !important; }
.badge-ui { background: #F5F3FF !important; color: #6D28D9 !important; border: 1px solid #EDE9FE !important; }
.badge-image { background: #FFFBEB !important; color: #B45309 !important; border: 1px solid #FEF3C7 !important; }
.badge-marketing { background: #FFF7ED !important; color: #C2410C !important; border: 1px solid #FFEDD5 !important; }
.badge-data { background: #F8FAFC !important; color: #475569 !important; border: 1px solid #E2E8F0 !important; }

/* Pricing Badges */
.badge-free {
  background: #ECFDF5 !important;
  color: #059669 !important;
  border: 1px solid #A7F3D0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 10px !important;
  border-radius: 99px !important;
}
.badge-paid {
  background: #FFFBEB !important;
  color: #D97706 !important;
  border: 1px solid #FDE68A !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 10px !important;
  border-radius: 99px !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}

