/* ==========================================================================
   Responsive Styles - 2025 IHR Summit
   ========================================================================== */

/* Mobile First Approach */

/* Extra Small devices (phones, 320px and up) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 var(--space-3);
        width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .title-main {
        font-size: var(--text-3xl);
    }
    
    .title-sub {
        font-size: var(--text-lg);
    }
    
    .hero-info {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .robot-showcase {
        width: 30rem;
        height: 30rem;
    }
    
    .robot-animation {
        width: 15rem;
        height: 15rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .tab-nav {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .exhibition-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        text-align: center;
    }
    
    .title-main {
        font-size: var(--text-4xl);
    }
    
    .robot-showcase {
        width: 35rem;
        height: 35rem;
    }
    
    .robot-animation {
        width: 17rem;
        height: 17rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    }
    
    .speakers-grid {
        grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }
    
    .exhibition-grid {
        grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exhibition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 1100px;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        gap: var(--space-6);
    }
    
    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exhibition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--space-12);
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .hero-content {
        max-width: 75%;
    }
    
    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .speakers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .exhibition-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
        padding: 0 var(--space-16);
    }
    
    .hero-content {
        max-width: 80%;
    }
    
    .robot-showcase {
        right: 8%;
        width: 500px;
        height: 500px;
    }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: var(--z-dropdown);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .back-to-top,
    .hero-actions,
    .registration-form,
    .social-links {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    section {
        padding: var(--space-8) 0;
        break-inside: avoid;
    }
    
    .section-header {
        margin-bottom: var(--space-6);
    }
    
    .card,
    .about-item,
    .speaker-card,
    .exhibition-item,
    .info-card {
        break-inside: avoid;
        margin-bottom: var(--space-4);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .robot-animation {
        transform: translateZ(0);
    }
    
    .hero-background {
        background-size: cover;
        background-attachment: fixed;
    }
}

/* Reduced Motion */
@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;
    }
    
    .robot-animation,
    .robot-animation::before,
    .scroll-arrow {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --gray-50: #111111;
        --gray-100: #1f1f1f;
        --gray-200: #2a2a2a;
        --gray-300: #3a3a3a;
        --gray-400: #5a5a5a;
        --gray-500: #7a7a7a;
        --gray-600: #9a9a9a;
        --gray-700: #bababa;
        --gray-800: #dadada;
        --gray-900: #ffffff;
        --black: #ffffff;
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: var(--gray-200);
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: var(--space-12) 0;
    }
    
    .hero-content {
        min-height: auto;
    }
    
    .robot-showcase {
        width: 25rem;
        height: 25rem;
    }
    
    .robot-animation {
        width: 12rem;
        height: 12rem;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    :focus {
        outline: none;
    }
    
    :focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container Queries (Future Enhancement) */
@supports (container-type: inline-size) {
    .about-item {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .about-icon {
            width: 6rem;
            height: 6rem;
            font-size: var(--text-2xl);
        }
    }
}

/* Hover Support */
@media (hover: hover) {
    .btn:hover,
    .nav-link:hover,
    .about-item:hover,
    .speaker-card:hover,
    .exhibition-item:hover,
    .info-card:hover,
    .social-link:hover,
    .back-to-top:hover {
        /* Enhanced hover effects for devices that support hover */
    }
}

@media (hover: none) {
    .btn:hover,
    .nav-link:hover,
    .about-item:hover,
    .speaker-card:hover,
    .exhibition-item:hover,
    .info-card:hover,
    .social-link:hover,
    .back-to-top:hover {
        transform: none;
    }
} 