/* 
 * Machina Lore Website - Responsive Design
 * Media queries and responsive adjustments for The Smashing Pumpkins' Machina lore website
 */

/* ===== Base Responsive Adjustments ===== */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
}

/* ===== Tablet Styles ===== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .two-column {
    gap: var(--spacing-sm);
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .albums-container {
    gap: var(--spacing-sm);
  }
  
  .album {
    min-width: 250px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .footer-content {
    gap: var(--spacing-sm);
  }
}

/* ===== Mobile Landscape Styles ===== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    width: 90%;
    padding: var(--spacing-sm) 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .hero-content h2 {
    font-size: 2.2rem;
  }
  
  /* Header & Navigation */
  header {
    padding: var(--spacing-xs) 0;
  }
  
  .logo-container h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav li {
    margin: var(--spacing-xs) var(--spacing-xs);
  }
  
  /* Layout Adjustments */
  .two-column .column {
    flex: 100%;
    min-width: 100%;
  }
  
  .hero {
    padding: var(--spacing-md) 0;
  }
  
  .hero-image {
    max-width: 300px;
  }
  
  section {
    padding: var(--spacing-sm) 0;
  }
  
  /* Timeline Adjustments */
  .timeline-content {
    padding: var(--spacing-xs);
  }
  
  /* Album & Character Grids */
  .albums-container {
    flex-direction: column;
    align-items: center;
  }
  
  .album {
    min-width: 100%;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  /* Footer Adjustments */
  .footer-section {
    flex: 100%;
    min-width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  /* Mobile Navigation Toggle */
  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 200;
  }
  
  /* Mobile Navigation Menu */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-darker);
    z-index: 100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  
  .mobile-nav.active {
    right: 0;
  }
  
  .mobile-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .mobile-nav li {
    margin: var(--spacing-sm) 0;
  }
  
  .mobile-nav a {
    font-size: 1.2rem;
  }
  
  /* Mobile Navigation Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* ===== Mobile Portrait Styles ===== */
@media (max-width: 576px) {
  html {
    font-size: 13px;
  }
  
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .logo-container h1 {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 0.8rem;
  }
  
  /* Layout Adjustments */
  .hero-image {
    max-width: 250px;
  }
  
  /* Timeline Adjustments */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
    width: 15px;
    height: 15px;
  }
  
  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px !important;
  }
  
  /* Gallery Adjustments */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Button Adjustments */
  .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
  }
  
  /* Character Cards */
  .character-image {
    height: 150px;
  }
}

/* ===== Small Mobile Styles ===== */
@media (max-width: 375px) {
  html {
    font-size: 12px;
  }
  
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .hero-content h2 {
    font-size: 1.6rem;
  }
  
  .logo-container h1 {
    font-size: 1.6rem;
  }
  
  /* Layout Adjustments */
  .hero-image {
    max-width: 200px;
  }
}

/* ===== Hamburger Menu Styles ===== */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  margin: 0 auto;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--color-light);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 200;
  }
  
  nav ul {
    display: none;
  }
  
  nav.active ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-darker);
    z-index: 100;
    justify-content: center;
    align-items: center;
  }
  
  nav.active li {
    margin: var(--spacing-sm) 0;
  }
  
  nav.active a {
    font-size: 1.2rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  header, footer, .hero::before, .page-hero::after {
    display: none;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  p, blockquote, ul, ol {
    orphans: 3;
    widows: 3;
  }
  
  img {
    max-width: 100% !important;
  }
  
  @page {
    margin: 2cm;
  }
}

/* ===== High Resolution Screens ===== */
@media (min-width: 1921px) {
  html {
    font-size: 18px;
  }
  
  .container {
    max-width: 1400px;
  }
  
  .hero-image {
    max-width: 500px;
  }
}

/* ===== Orientation Specific Styles ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding: var(--spacing-sm) 0;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-image {
    max-width: 200px;
  }
  
  nav.active ul {
    padding: var(--spacing-lg) 0;
    overflow-y: auto;
  }
  
  nav.active li {
    margin: var(--spacing-xs) 0;
  }
}

/* ===== 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;
  }
}