/* FediMTL - Responsive Styles */

/* ===== Mobile First Base (already in styles.css) ===== */

/* ===== Tablet: 768px and up ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    /* Typography */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 8rem 0;
    }

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

    .hero-tagline {
        font-size: 1.5rem;
    }

    /* Sections */
    section {
        padding: 6rem 0;
    }

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

    /* About Highlights */
    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Speakers Grid */
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Desktop: 1024px and up ===== */
@media (min-width: 1024px) {
    /* Hero Section */
    .hero {
        padding: 10rem 0;
    }

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

    /* Speakers Grid */
    .speakers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Mobile: Below 768px ===== */
@media (max-width: 767px) {
    /* Header */
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .site-logo {
        font-size: 1.25rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    /* Hero */
    .hero {
        padding: 4rem 0;
    }

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

    .hero-title img {
        display: none;
    }

    .hero-tagline {
        font-size: 1.35rem;
    }

    .hero-details {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        align-items: center;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

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

    /* About */
    .about-content p {
        font-size: 1.125rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Speakers */
    .speakers-grid {
        grid-template-columns: 1fr;
    }

    .speaker-card {
        padding: 1.5rem;
    }

    /* Schedule */
    .schedule-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .schedule-time {
        min-width: auto;
    }

    /* Venue */
    .venue-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        margin-bottom: 1rem;
    }
}

/* ===== Small Mobile: Below 480px ===== */
@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }

    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }

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

    .hero-tagline {
        font-size: 1.2rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
    }

    /* About */
    .highlight {
        padding: 1.5rem;
    }

    /* Speakers */
    .speaker-image {
        width: 120px;
        height: 120px;
    }

    .speaker-name {
        font-size: 1.25rem;
    }

    /* Schedule */
    .schedule-item {
        padding: 1rem;
    }

    .schedule-time {
        font-size: 1rem;
    }

    /* Registration */
    .register-details {
        padding: 1.5rem;
    }

    .ticket-info p {
        font-size: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .lang-toggle,
    .btn,
    .site-footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    section {
        page-break-inside: avoid;
    }

    .hero {
        background: none;
        color: black;
        padding: 2rem 0;
    }
}

/* ===== Accessibility & Interactions ===== */

/* Focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--cornflower-blue);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --cornflower-blue: var(--indigo-ink);
        --indigo-ink: #000000;
        --periwinkle: #000000;
    }

    .btn-primary {
        border: 2px solid black;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        padding: 14px 36px;
    }

    .nav-links a {
        padding: 10px;
    }

    .lang-toggle {
        padding: 12px 20px;
    }

    /* Remove hover effects on touch devices */
    .speaker-card:hover,
    .highlight:hover,
    .schedule-item:hover {
        transform: none;
    }
}
