/* AI Podcast Script Generator Template - Responsive Styles */

/* Mobile First Breakpoints */
/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: var(--section-padding-mobile);
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.375rem;
    --font-size-h3: 1.25rem;
  }

  /* No animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Header */
  .navbar-brand {
    font-size: var(--font-size-base);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: var(--font-size-small);
  }
  
  /* Hero Section */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-top: 125px;
}
  
  /* Cards */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  /* Service Cards */
  .service-image {
    width: 60px;
    height: 60px;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Footer */
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* No animations on mobile landscape */
  * {
    animation: none !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .hero-content h1 {
    font-size: var(--font-size-h1);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .price-card.featured {
    transform: none;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Hero Section */
  #hero {
    min-height: 100vh;
  }
  
  /* Cards grid improvements */
  .services-grid .col-lg-4:nth-child(3n+1) .service-card {
    border-left: 4px solid var(--primary-purple);
  }
  
  .services-grid .col-lg-4:nth-child(3n+2) .service-card {
    border-left: 4px solid var(--primary-blue);
  }
  
  .services-grid .col-lg-4:nth-child(3n+3) .service-card {
    border-left: 4px solid var(--primary-green);
  }
  
  /* Team section stagger effect */
  .team-grid .col-lg-3:nth-child(even) .team-card {
    margin-top: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for larger screens */
  section {
    padding: 6rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .feature-icon,
  .service-image,
  .team-photo,
  .process-number {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  
  #header,
  #footer,
  .btn,
  .navbar {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
  }
  
  section {
    page-break-inside: avoid;
    break-inside: avoid;
    padding: 1rem 0;
  }
}

/* Reduced motion preference (accessibility) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-content,
  .hero-image,
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .gallery-item {
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-purple: #4A1A5F;
    --primary-blue: #1A3A6F;
    --primary-green: #2A5F1A;
    --primary-orange: #6F3A1A;
    --primary-pink: #5F1A3A;
    --light-gray: #E0E0E0;
    --dark-gray: #1A1A1A;
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .blog-card,
  .faq-card,
  .price-card {
    border: 2px solid var(--dark-gray);
  }
}

/* Dark mode preference */

/* Focus improvements for keyboard navigation */
@media (any-hover: none) {
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .casestudy-card:hover,
  .career-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Custom breakpoint for very small screens */
@media (max-width: 360px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .feature-card,
  .service-card,
  .faq-card {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-small);
  }
}

/* Tablet landscape specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #hero {
    min-height: 90vh;
  }
  
  section {
    padding: 4rem 0;
  }
}

/* Large tablet portrait */
@media (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .price-card {
    margin-bottom: 2rem;
  }
} 