/* ================================================
   Pocketshow - Premium Cinema Streaming Design System
   Short Drama Landing Page
   Brazilian Portuguese Audience
   Inspired by: Video Streaming/OTT + Glassmorphism
   ================================================ */

/* ================================================
   1. CSS RESET & ROOT VARIABLES
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* === CINEMA DARK COLOR PALETTE === */
  /* Primary backgrounds */
  --bg-cinema: #0F0F23;
  --bg-deep-black: #000000;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252542;
  --bg-elevated: #1E1E3F;
  
  /* Glass effect */
  --bg-glass: rgba(15, 15, 35, 0.85);
  --bg-glass-light: rgba(255, 255, 255, 0.05);
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0B0;
  --text-muted: #6B6B80;
  
  /* === STREAMING CTA COLORS (PLAY RED) === */
  --accent-play: #E11D48;
  --accent-play-hover: #FF1A5C;
  --accent-play-glow: rgba(225, 29, 72, 0.4);
  
  /* === PURPLE ACCENTS (Entertainment/Creative) === */
  --accent-gold: #7C3AED;
  --accent-gold-light: #A78BFA;
  --accent-gold-dark: #6D28D9;
  --accent-gold-gradient: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A78BFA 100%);
  --accent-gold-glow: rgba(124, 58, 237, 0.3);
  
  /* === TAG & LABEL COLORS === */
  --tag-bg: rgba(124, 58, 237, 0.15);
  --tag-text: #7C3AED;
  --tag-border: rgba(124, 58, 237, 0.25);
  
  /* === BORDERS & SURFACES === */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-light: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(124, 58, 237, 0.3);
  
  /* === SHADOWS === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-play: 0 4px 24px var(--accent-play-glow);
  --shadow-gold: 0 4px 24px var(--accent-gold-glow);
  
  /* === TRANSITIONS === */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* === CUSTOM EASING === */
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === GLOW EFFECTS === */
  --glow-gold: 0 0 20px rgba(124, 58, 237, 0.3);
  --glow-play: 0 0 20px rgba(225, 29, 72, 0.4);
  --glow-gold-strong: 0 0 30px rgba(124, 58, 237, 0.5);
  --glow-play-strong: 0 0 30px rgba(225, 29, 72, 0.6);
  
  /* === BORDER RADIUS === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* === SAFE AREAS (Mobile Native Feel) === */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  
  /* === TOUCH TARGETS (44px minimum) === */
  --touch-target-min: 44px;
  
  /* === Z-INDEX SCALE === */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* ================================================
   2. BASE STYLES
   ================================================ */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 
               'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-cinema) 0%, var(--bg-deep-black) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-width: 0;
}

/* Smooth scrolling with reduced motion support */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection color */
::selection {
  background: var(--accent-gold);
  color: var(--bg-cinema);
}

/* ================================================
   3. APP CONTAINER (Mobile-First Cinema Width)
   ================================================ */
#app {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-cinema);
  position: relative;
  overflow-x: hidden;
}

/* Desktop: constrain width */
@media (min-width: 768px) {
  #app {
    max-width: 480px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  }
}

/* ================================================
   4. TYPOGRAPHY
   ================================================ */

/* Heading font - Outfit for entertainment feel */
h1, h2, h3, .heading {
  font-family: 'Outfit', 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ================================================
   5. HEADER - Premium Glassmorphism Sticky Nav
   ================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding: calc(var(--safe-area-top) + 12px) 16px 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  animation: slideDown 500ms ease forwards;
}

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

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.03em;
}

/* ================================================
   6. HERO SECTION - Mobile-First Responsive
   ================================================ */
.hero {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  flex-direction: row;
  background: var(--bg-cinema);
  width: 100%;
  min-width: 0;
  padding: 16px;
}

/* Tablet and up: row layout */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    min-height: 300px;
    max-height: 340px;
    padding: 0;
  }
}

/* Hero Left Side - Full width on mobile */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0 0 16px 0;
  text-align: center;
}

/* Desktop: left side takes 50%, align left */
@media (min-width: 768px) {
  .hero-left {
    flex: 0 0 50%;
    padding: 20px 24px;
    align-items: flex-start;
    text-align: left;
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title-line1,
.hero-title-line2 {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-left .download-buttons {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .hero-left .download-buttons {
    justify-content: flex-start;
    margin-top: 24px;
  }
}

.hero-left .download-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.hero-left .store-icon {
  width: 20px;
  height: 20px;
}

/* Hero Right Side - Banner Grid */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
}

/* Desktop: right side takes 50% */
@media (min-width: 768px) {
  .hero-right {
    flex: 0 0 50%;
    justify-content: flex-end;
    padding-right: 8px;
  }
}

/* Banner Grid - Responsive sizing */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 280px;
  height: 180px;  /* Fixed height instead of aspect-ratio */
}

@media (min-width: 375px) {
  .banner-grid {
    max-width: 300px;
    height: 190px;
  }
}

@media (min-width: 480px) {
  .banner-grid {
    max-width: 340px;
    height: 210px;
  }
}

@media (min-width: 768px) {
  .banner-grid {
    max-width: 360px;
    height: 100%;
  }
}

/* Mobile: 767px and below */
@media (max-width: 767px) {
  .hero {
    padding: 12px;
  }
  
  .hero-left {
    flex: 0 0 45%;
    padding: 0 12px 0 0;
  }
  
  .hero-right {
    flex: 0 0 55%;
    padding: 0;
  }
  
  .hero-title {
    font-size: 1.2rem;
  }
  
  .hero-subtitle {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  
  .hero-left .download-buttons {
    margin-top: 6px;
  }
  
  .hero-left .download-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* Banner Cells - Fill grid space */
.banner-cell {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  /* Remove aspect-ratio: 1 / 1 - let grid control sizing */
}

/* Upper row - 2 cells aligned right */
.banner-cell[data-index="0"] { grid-column: 2; grid-row: 1; }
.banner-cell[data-index="1"] { grid-column: 3; grid-row: 1; }

/* Lower row - 3 cells */
.banner-cell[data-index="2"] { grid-column: 1; grid-row: 2; }
.banner-cell[data-index="3"] { grid-column: 2; grid-row: 2; }
.banner-cell[data-index="4"] { grid-column: 3; grid-row: 2; }

.banner-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.banner-cell:hover img {
  transform: scale(1.05);
}

/* ================================================
   7. DRAMAS SECTION - Grid Layout
   ================================================ */

/* === DOWNLOAD BUTTONS - Enhanced Play Red CTA === */
.download-buttons {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* Gap fallback for older browsers (Safari < 14, Chrome < 84) */
@supports not (gap: 12px) {
  .download-buttons {
    justify-content: center;
  }

  .download-buttons > * + * {
    margin-left: 12px;
  }
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gold-gradient);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 24px;
  text-decoration: none;
  color: var(--bg-cinema);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  position: relative;
  overflow: hidden;
}

/* Pulsing glow animation */
.download-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  padding: 2px;
  background: var(--accent-gold-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

/* Gradient shimmer on hover */
.download-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-gold-glow), 0 0 40px var(--accent-gold-glow);
}

.download-btn:hover::after {
  left: 100%;
}

.download-btn:active {
  transform: scale(0.97);
}

.store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--transition-bounce) 0.3s;
}

.download-btn:hover .store-icon {
  animation: iconBounce 0.6s ease infinite;
}

.store-icon path {
  fill: var(--bg-cinema);
}

.store-name {
  font-weight: 700;
}
.dramas-section {
  padding: 12px 16px 32px;
}

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

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 8px;
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ver todos link */
.ver-todos-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.ver-todos-link:hover {
  color: var(--accent-gold-light);
}

/* Decorative gold dot */
.section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: var(--glow-gold);
  flex-shrink: 0;
}

/* Decorative gold line */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold-gradient);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.section-title:hover::after {
  width: 60px;
}

/* Dramas Grid Container */
.dramas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--bg-card);
}

/* Tablet: 3 columns */
@media (min-width: 400px) {
  .dramas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: 4 columns */
@media (min-width: 480px) {
  .dramas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Scrollbar Styles */
.dramas-grid::-webkit-scrollbar {
  width: 6px;
}

.dramas-grid::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 3px;
}

.dramas-grid::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 3px;
}

/* Grid Item */
.grid-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.grid-item:hover img {
  transform: scale(1.1);
}

/* Grid Item Overlay */
.grid-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  pointer-events: none;
}

/* ================================================
   8. DRAMA POPUP - Hover Tooltip
   ================================================ */
.drama-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.drama-popup.active {
  display: flex;
  opacity: 1;
}

.drama-popup-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color-light);
  box-shadow: var(--shadow-lg);
  animation: fadeInScale 300ms ease forwards;
}

.drama-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 10;
}

.drama-popup-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.drama-popup-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.drama-popup-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drama-popup-info {
  padding: 20px;
}

.drama-popup-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.drama-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.drama-popup-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================
   8. DISCOVER SECTION
   ================================================ */
.discover-section {
  padding: 28px 16px 48px;
  background: linear-gradient(180deg, var(--bg-cinema) 0%, var(--bg-deep-black) 100%);
}

.discover-swiper {
  overflow: visible;
}

.discover-swiper .swiper-slide {
  width: auto;
}

.discover-item {
  width: 82px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-base);
  min-height: var(--touch-target-min);
}

.discover-item:hover {
  transform: scale(1.08);
}

.discover-item:active {
  transform: scale(0.95);
}

.discover-item img {
  width: 82px;
  height: 115px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.discover-item:hover img {
  box-shadow: var(--shadow-md);
}

.discover-name {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.discover-item:hover .discover-name {
  color: var(--text-primary);
}

/* ================================================
   9. FOOTER - Premium Card Style
   ================================================ */
.footer {
  background: var(--bg-cinema);
  padding: 12px 16px calc(12px + var(--safe-area-bottom));
  border-top: 1px solid var(--border-color);
  margin-top: 0;
}

.footer-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

/* Gradient border effect */
.footer-content::before {
  display: none;
}

.footer-logo {
  margin-bottom: 4px;
}

.footer-logo .logo-img {
  display: none;
}

.footer-logo .logo-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-contact,
.footer-legal {
  margin-bottom: 4px;
}

.footer-contact h4,
.footer-legal h4 {
  display: none;
}

.footer-contact p,
.footer-legal p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Clickable email */
.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--text-secondary);
}

/* Social icons section */
.footer-social {
  display: none;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-color-light);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-cinema);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.footer-copyright {
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
}

.footer-copyright p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ================================================
   10. INTERACTIVE STATES
   ================================================ */

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* All clickable elements - cursor pointer */
a,
button,
.clickable,
[role="button"],
.drama-card,
.discover-item,
.download-btn {
  cursor: pointer;
}

/* Enhanced transitions for all interactive elements */
a,
button,
.drama-card,
.discover-item,
.download-btn {
  transition: all var(--transition-base);
}

/* Ripple effect container */
.ripple {
  position: relative;
  overflow: hidden;
}

/* Ripple animation on click */
.ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple:active::after {
  animation: ripple 0.6s ease-out;
}

/* ================================================
   11. UTILITY CLASSES
   ================================================ */

/* Glassmorphism */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-color);
}

.glass-light {
  background: var(--bg-glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color-light);
}

/* Text truncation */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* ================================================
   12. RESPONSIVE ADJUSTMENTS
   ================================================ */
@media (min-width: 480px) {
  .hero-left .download-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }
}

/* Desktop constraint */
@media (min-width: 768px) {
  #app {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
  }
}

/* ================================================
   13. ANIMATIONS
   ================================================ */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 4px 24px var(--accent-gold-glow);
  }
  50% {
    box-shadow: 0 4px 32px var(--accent-gold-glow);
  }
}

/* Enhanced entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: var(--glow-gold);
  }
  50% {
    box-shadow: var(--glow-gold-strong);
  }
}

@keyframes pulseGlowPlay {
  0%, 100% {
    box-shadow: var(--glow-play);
  }
  50% {
    box-shadow: var(--glow-play-strong);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 4px 30px var(--accent-gold-glow);
  }
  50% {
    text-shadow: 0 4px 50px var(--accent-gold-glow), 0 0 60px rgba(124, 58, 237, 0.2);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Stagger delays for entrance animations */
.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }
.stagger-6 { animation-delay: 600ms; }

/* ================================================
   14. PRINT & ACCESSIBILITY
   ================================================ */
@media print {
  .header,
  .footer {
    background: white;
    color: black;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: rgba(255, 255, 255, 0.3);
    --text-secondary: #C0C0C0;
  }
}
