/* Mobile First Responsive Design */

/* Base mobile styles (already in main.css and components.css) */

/* Tablet styles */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .logo img {
    height: 48px;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  /* Hide nav links on mobile, use hamburger menu instead */
  .nav {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .what-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .what-text {
    order: 2;
  }

  .what-image {
    order: 1;
  }

  .section-title {
    font-size: 2rem;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .browse-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .preroll-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .search-bar {
    flex-direction: column;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar .filter-select,
  .filter-bar .filter-input {
    min-width: unset;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  .footer-left {
    text-align: left;
  }

  .footer-left img {
    height: 80px;
    align-self: flex-start;
  }

  .footer-center,
  .footer-right,
  .footer-tutorials {
    text-align: left;
  }


  .preroll-actions {
    flex-direction: column;
  }

  .pagination {
    gap: 0.5rem;
  }

  .contact-hero-title {
    font-size: 2.5rem;
  }

  .contact-hero-subtitle {
    font-size: 1.1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-methods {
    gap: 1.5rem;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .preroll-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .logo img {
    height: 40px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

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

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .what-content {
    gap: 1.5rem;
  }

  .benefit-item h3 {
    font-size: 1rem;
  }

  .what-description {
    font-size: 1rem;
  }

  .preroll-grid {
    grid-template-columns: 1fr;
  }

  .platform-card {
    padding: 1.5rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .footer {
    padding: 30px 0;
  }

  .footer-left img {
    height: 60px;
  }

  .filter-sidebar {
    padding: 1rem;
  }

  .contact-hero {
    padding: 60px 0 40px;
  }

  .contact-hero-title {
    font-size: 2rem;
  }

  .contact-hero-subtitle {
    font-size: 1rem;
  }

  .contact-main {
    padding: 40px 0;
  }

  .contact-method {
    padding: 1rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .preroll-detail .preroll-content {
    gap: 1rem;
  }

  .preroll-info h1 {
    font-size: 1.5rem;
  }

  .preroll-description {
    font-size: 1rem;
  }

  .browse-header,
  .platform-header {
    padding: 40px 0;
  }

  .browse-header h1,
  .platform-header h1 {
    font-size: 1.75rem;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .container {
    max-width: 1200px;
    padding: 0 30px;
  }

  .header-content {
    padding: 1.5rem 0;
  }

  .logo img {
    height: 60px;
  }

  .nav {
    gap: 2.5rem;
  }

  .hero {
    padding: 120px 0;
  }

  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
  }

  .hero-actions {
    gap: 2rem;
  }

  .section-title {
    font-size: 2.8rem;
    margin-bottom: 4rem;
  }

  .preroll-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .platform-card {
    padding: 3rem 2rem;
  }

  .browse-layout {
    grid-template-columns: 320px 1fr;
    gap: 3rem;
  }

  .filter-sidebar {
    padding: 2rem;
  }

  .preroll-detail .preroll-content {
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
  }

  .contact-options {
    gap: 3rem;
  }

  .contact-card {
    padding: 3rem;
  }
}

/* Large desktop styles */
@media (min-width: 1400px) {
  .container {
    max-width: 1600px;
    padding: 0 40px;
  }

  .preroll-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
  }

  .platform-grid {
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
  }

  .browse-layout {
    grid-template-columns: 360px 1fr;
    gap: 4rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3.2rem;
  }

  .preroll-detail .preroll-content {
    grid-template-columns: 1fr 450px;
    gap: 5rem;
  }
}

/* Ultra-wide desktop styles */
@media (min-width: 1800px) {
  .container {
    max-width: 1800px;
  }

  .preroll-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3.5rem;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .section-title {
    font-size: 3.5rem;
  }
}

/* Print styles */
@media print {

  .header,
  .footer,
  .search-section,
  .filter-sidebar,
  .pagination,
  .btn,
  .nav {
    display: none !important;
  }

  body {
    color: black;
    background: white;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .preroll-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .preroll-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #800080;
    --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
  }

  .btn {
    border: 2px solid currentColor;
  }

  .preroll-card {
    border: 1px solid var(--border-color);
  }
}