/* Responsive Styles for Flunexo */

/* Base Mobile First Approach */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .enigmatic-headline {
    font-size: 2.5rem;
  }
  
  /* Header & Navigation */
  header {
    padding: var(--spacing-sm);
  }
  
  .logo-container {
    z-index: 1001;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s ease;
    z-index: 1000;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu li {
    margin: var(--spacing-lg) 0;
  }
  
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  /* Sections */
  section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  /* Banner */
  .banner-content {
    padding: var(--spacing-md);
    width: 90%;
  }
  
  /* Features */
  .features-container {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    width: 100%;
    margin-bottom: var(--spacing-lg);
  }
  
  /* About */
  .about {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .about-content, .abstract-art {
    max-width: 100%;
  }
  
  /* Games */
  .games-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Contact */
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info, .contact-form {
    max-width: 100%;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /* Game Pages */
  .game-frame-container {
    height: 50vh;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Typography */
  .enigmatic-headline {
    font-size: 3rem;
  }
  
  /* Features */
  .features-container {
    flex-wrap: wrap;
  }
  
  .feature {
    flex: 0 0 calc(50% - var(--spacing-lg));
    margin-bottom: var(--spacing-lg);
  }
  
  /* Games */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact */
  .contact-container {
    gap: var(--spacing-lg);
  }
}

/* Large Desktop Styles */
@media (min-width: 1025px) {
  /* Layout */
  .container {
    max-width: 1400px;
  }
  
  /* Features */
  .feature {
    flex: 1;
  }
  
  /* Games */
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  /* Banner */
  .banner {
    height: auto;
    min-height: 100vh;
    padding: 120px 0;
  }
  
  /* Navigation */
  .menu {
    padding-top: 60px;
  }
  
  /* Game Frame */
  .game-frame-container {
    height: 70vh;
  }
}

/* High Resolution Displays */
@media (min-width: 1800px) {
  :root {
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
  }
  
  html {
    font-size: 18px;
  }
  
  .container {
    max-width: 1800px;
  }
  
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Print Styles */
@media print {
  body {
    background-color: #fff;
    color: #000;
  }
  
  .banner, .features, .contact, footer {
    display: none;
  }
  
  .disclaimer, .policy-container {
    background: none;
    color: #000;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .logo-shape, .shape, .abstract-btn, .abstract-icon,
  .game-card, .game-frame img, .abstract-contact-icon,
  .art-piece, .social-icon, .enigmatic-headline,
  .disclaimer h3 {
    animation: none !important;
    transition: none !important;
  }
}

/* Dark Mode Preferences */
@media (prefers-color-scheme: dark) {
  :root {
    --dark: #1a1a2e;
    --light: #f2f2f2;
  }
}

/* Light Mode Preferences */
@media (prefers-color-scheme: light) {
  :root {
    --dark: #1a1a2e;
    --light: #f2f2f2;
  }
  
  /* We keep the dark theme regardless of system preference */
}