/* ShortDrama.in - Design System & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - DashReels Theme */
  --bg-primary: #0F0F0F;
  --bg-secondary: #1a1a1a;
  --bg-card: transparent;
  --bg-card-hover: transparent;
  --bg-glass: transparent;
  --bg-glass-border: transparent;

  /* Brand Accents */
  --brand-primary: #ff2e55;
  --brand-hover: #ff4769;

  /* Gold VIP Accents (Kept for VIP logic) */
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --gold-glow: 0 0 25px rgba(245, 158, 11, 0.35);

  /* Neutrals */
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #888888;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-active: rgba(255, 46, 85, 0.4);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 68px;
  --bottom-nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #232336;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Glassmorphism Classes */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Top Navigation Bar */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* New Navbar Items */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 16px;
  width: 250px;
  gap: 10px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  width: 100%;
}

.nav-language, .nav-download, .nav-profile {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.nav-language:hover, .nav-download:hover, .nav-profile:hover {
  color: #fff;
}

/* Hero Carousel */
.hero-section {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 480px;
  max-height: 680px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 1.2s ease, visibility 0.8s;
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0F0F0F 0%, rgba(15,15,15,0.3) 50%, rgba(15,15,15,0) 100%),
              linear-gradient(90deg, #0F0F0F 0%, rgba(15,15,15,0.8) 30%, transparent 60%);
}

.hero-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  max-width: 720px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

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

.tag-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #cbd5e1;
}

.hero-desc {
  max-width: 580px;
  color: var(--text-secondary);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-play-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

.btn-play-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Thumbnails */
.hero-thumbnails-container {
  position: absolute;
  bottom: 60px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 20;
}

.hero-thumb {
  width: 90px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.6;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-thumb:hover {
  opacity: 0.9;
}

.hero-thumb.active {
  opacity: 1;
  border-color: var(--brand-primary);
  transform: scale(1.05);
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin: 0 auto;
}
.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-chip:hover, .cat-chip.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Drama Rows & Grids */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header.dashreels-header {
  border-bottom: none;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span.icon {
  display: none; /* Removed for dashreels look */
}

.see-all-link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.see-all-link:hover {
  color: #fff;
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* Drama Card - DashReels Style */
.drama-card {
  position: relative;
  background: transparent;
  border: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: visible;
}

.drama-card:hover {
  transform: scale(1.03);
  box-shadow: none;
}

.card-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #12121a;
  border-radius: var(--radius-sm);
}

.card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.85);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-info {
  padding: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.card-meta {
  display: none;
}

/* VIP Modal Overlay */
.vip-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.vip-modal-backdrop.active {
  display: flex;
}

.vip-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, #181828 0%, #0d0d16 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--gold-glow);
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.vip-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.vip-modal-icon {
  font-size: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
}

.vip-modal-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.vip-modal-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
}

/* Pricing Grid */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.pricing-tier-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-tier-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.05);
}

.pricing-tier-card.selected {
  border-color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.tier-badge {
  position: absolute;
  top: -10px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tier-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
  color: #cbd5e1;
}

.tier-price-row {
  margin: 12px 0 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.tier-currency {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
}

.tier-amount {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.tier-strike {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.tier-subtext {
  font-size: 11px;
  color: var(--text-muted);
}

.vip-features-list {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.vip-feature-item .check {
  color: var(--gold-primary);
  font-weight: 900;
}

.btn-pay-now {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--gold-glow);
  transition: var(--transition);
}

.btn-pay-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
}

.payment-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: #1e1e2d;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.4);
  background: #0f291e;
  color: #4ade80;
}

.toast.gold {
  border-color: var(--gold-primary);
  background: #251b0a;
  color: var(--gold-light);
}

/* Bottom Navigation Bar (Mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: rgba(7, 7, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: var(--transition);
  padding: 6px 12px;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--gold-light);
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 40px 24px 100px;
  background: #050508;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .top-navbar .nav-links {
    display: none;
  }
  .bottom-nav {
    display: flex;
  }
  .hero-section {
    height: 58vh;
    min-height: 420px;
  }
  .hero-content {
    bottom: 24px;
    padding: 0 16px;
  }
  .section-container {
    padding: 16px;
  }
  .drama-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
  }
  .vip-modal {
    padding: 24px 16px;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
}
