/* RBO Website Toolkit - Responsive Styles */

/* ===== Mobile Menu Toggle ===== */
.mobile-menu-toggle {
    display: none;
}

/* ===== Tablet (max-width: 768px) ===== */
@media (max-width: 768px) {
    :root {
        --spacing-xxl: 2rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .header-main {
        height: 80px;
    }
    
    .site-logo {
        height: 60px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--background);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item a {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child a {
        border-bottom: none;
    }
    
    /* Dropdown on mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--background-alt);
        display: none;
    }
    
    .nav-item.has-dropdown.open .dropdown-menu {
        display: block;
    }
    
    /* Banner */
    .banner {
        min-height: 400px;
    }
    
    .banner-content {
        margin-left: 0;
        padding: var(--spacing-xl);
        text-align: center;
        max-width: 100%;
    }
    
    .banner-title {
        font-size: 1.75rem;
    }
    
    .event-banner {
        height: 300px;
    }
    
    .event-banner-content h1 {
        font-size: 1.5rem;
    }
    
    /* Featured Event */
    .featured-event-card {
        grid-template-columns: 1fr;
    }
    
    .featured-event-image {
        min-height: 250px;
    }
    
    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* Event Meta */
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    /* Speakers */
    .speakers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* Contact */
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    /* Row Layout */
    .col-8,
    .col-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===== Mobile (max-width: 549px) ===== */
@media (max-width: 549px) {
    html {
        font-size: 15px;
    }
    
    .header-main {
        height: 70px;
    }
    
    .site-logo {
        height: 50px;
    }
    
    .top-bar {
        font-size: 12px;
    }
    
    /* Banner */
    .banner-content {
        padding: 120px 0 var(--spacing-lg);
    }
    
    .banner-title {
        font-size: 1.25rem;
    }
    
    .event-banner {
        height: 240px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-large {
        padding: var(--spacing-md);
    }
    
    /* Events Grid */
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Speakers */
    .speakers-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .speaker-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Sponsors */
    .sponsors-grid {
        gap: var(--spacing-md);
    }
    
    .sponsor-logo {
        height: 40px;
    }
    
    /* Page content */
    .page-content,
    .event-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .event-cta {
        padding: var(--spacing-lg);
        margin: var(--spacing-lg) var(--spacing-md);
    }
}

/* ===== Large Desktop (min-width: 1280px) ===== */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ===== Print Styles ===== */
@media print {
    .skip-link,
    .top-bar,
    .site-header,
    .site-footer,
    .mobile-menu-toggle,
    .event-cta,
    .back-link {
        display: none !important;
    }
    
    .banner,
    .event-banner {
        height: auto;
        background: none !important;
    }
    
    .banner-overlay,
    .event-banner-overlay {
        display: none;
    }
    
    .banner-content,
    .event-banner-content {
        position: static;
        padding: var(--spacing-lg) 0;
    }
    
    .banner-title,
    .event-banner-content h1 {
        color: var(--text-color);
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--text-light);
    }
}

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

/* ===== Video Container for Responsive Embeds ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: var(--spacing-md) 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
