/* Arena Time Website - Responsive Stylesheet */
/* Comprehensive responsive design for all devices */

/* Mobile First Approach */
/* Base styles are for mobile devices */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.875rem; /* 30px */
    }
    
    h2 {
        font-size: 1.5rem; /* 24px */
    }
    
    h3 {
        font-size: 1.25rem; /* 20px */
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.5rem;
    }
    
    /* Grid */
    .grid {
        gap: 1rem;
    }
    
    /* Spacing */
    .mb-8 {
        margin-bottom: 2rem;
    }
    
    .mt-8 {
        margin-top: 2rem;
    }
    
    .p-8 {
        padding: 2rem;
    }
}

/* Mobile Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.25rem; /* 36px */
    }
    
    h2 {
        font-size: 1.875rem; /* 30px */
    }
    
    h3 {
        font-size: 1.5rem; /* 24px */
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.75rem;
    }
    
    /* Grid */
    .grid {
        gap: 1.5rem;
    }
}

/* Tablet Devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem; /* 40px */
    }
    
    h2 {
        font-size: 2rem; /* 32px */
    }
    
    h3 {
        font-size: 1.75rem; /* 28px */
    }
    
    /* Grid */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Devices (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        padding: 0 2rem;
    }
    
    /* Typography */
    h1 {
        font-size: 3rem; /* 48px */
    }
    
    h2 {
        font-size: 2.25rem; /* 36px */
    }
    
    h3 {
        font-size: 1.875rem; /* 30px */
    }
    
    /* Grid */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop Devices (1441px+) */
@media (min-width: 1441px) {
    .container {
        padding: 0 3rem;
    }
    
    /* Typography */
    h1 {
        font-size: 3.5rem; /* 56px */
    }
    
    h2 {
        font-size: 2.5rem; /* 40px */
    }
    
    h3 {
        font-size: 2rem; /* 32px */
    }
    
    /* Grid */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .app-screenshot,
    .download-preview,
    .avatar-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-down,
    .animate-scale {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #000000;
        --on-primary: #FFFFFF;
        --secondary: #000000;
        --on-secondary: #FFFFFF;
        --surface: #FFFFFF;
        --on-surface: #000000;
        --outline: #000000;
    }
    
    .btn {
        border: 2px solid var(--outline);
    }
    
    .card {
        border: 2px solid var(--outline);
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    /* Additional dark mode responsive adjustments */
    .hero-section {
        background: linear-gradient(135deg, var(--primary-container) 0%, var(--surface-container) 100%);
    }
    
    .card {
        border: 1px solid var(--outline-variant);
    }
    
    .btn-outline {
        border-color: var(--primary);
    }
}

/* Print Responsive */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .grid {
        display: block;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: none;
    }
    
    .card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .btn {
        display: none;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-content {
        display: block;
    }
    
    .hero-image {
        display: none;
    }
}

/* Specific Component Responsive Styles */

/* Navigation */
@media (max-width: 768px) {
    .navbar .container {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        border-top: 1px solid var(--outline);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* Hero Section */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

/* Features Section */
@media (max-width: 768px) {
    .features-section {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Events Section */
@media (max-width: 768px) {
    .events-section {
        padding: 4rem 0;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-card {
        padding: 1.5rem;
    }
}

/* Download Section */
@media (max-width: 768px) {
    .download-section {
        padding: 4rem 0;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Testimonials Section */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* CTA Section */
@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Contact Form */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 1.5rem;
    }
}

/* About Page */
@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-year {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .tech-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Privacy Page */
@media (max-width: 768px) {
    .privacy-text {
        padding: 0 1rem;
    }
    
    .privacy-text h2 {
        font-size: 1.25rem;
    }
    
    .privacy-text h3 {
        font-size: 1.125rem;
    }
}

/* Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Utility Classes for Responsive Design */
.hidden-mobile {
    display: block;
}

.visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
    
    .visible-mobile {
        display: block;
    }
}

.hidden-tablet {
    display: block;
}

.visible-tablet {
    display: none;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hidden-tablet {
        display: none;
    }
    
    .visible-tablet {
        display: block;
    }
}

.hidden-desktop {
    display: block;
}

.visible-desktop {
    display: none;
}

@media (min-width: 1025px) {
    .hidden-desktop {
        display: none;
    }
    
    .visible-desktop {
        display: block;
    }
}

/* Responsive Text Sizes */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.text-responsive-lg {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

.text-responsive-xl {
    font-size: clamp(2rem, 5vw, 4rem);
}

/* Responsive Spacing */
.spacing-responsive {
    padding: clamp(1rem, 5vw, 4rem);
}

.margin-responsive {
    margin: clamp(1rem, 5vw, 4rem);
}

/* Responsive Images */
.img-responsive {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.img-responsive-square {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.img-responsive-16-9 {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Responsive Containers */
.container-responsive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

/* Responsive Grid */
.grid-responsive {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive Flexbox */
.flex-responsive {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw, 2rem);
}

@media (min-width: 768px) {
    .flex-responsive {
        flex-direction: row;
    }
}

/* Responsive Cards */
.card-responsive {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 3vw, 2rem);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-responsive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Buttons */
.btn-responsive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px;
    min-width: 44px;
}

/* Responsive Forms */
.form-responsive {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw, 1.5rem);
}

.form-group-responsive {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-responsive input,
.form-group-responsive select,
.form-group-responsive textarea {
    width: 100%;
    padding: clamp(0.5rem, 2vw, 0.75rem);
    border: 1px solid var(--outline);
    border-radius: var(--radius-md);
    font-size: clamp(0.875rem, 2vw, 1rem);
    background-color: var(--surface-container);
    color: var(--on-surface);
    transition: border-color var(--transition-fast);
}

/* Responsive Navigation */
.nav-responsive {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 5vw, 2rem);
}

.nav-menu-responsive {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 768px) {
    .nav-menu-responsive {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        border-top: 1px solid var(--outline);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-menu-responsive.active {
        transform: translateY(0);
    }
}

/* Responsive Footer */
.footer-responsive {
    background: var(--surface-container);
    border-top: 1px solid var(--outline);
    padding: clamp(2rem, 5vw, 3rem) 0 1rem;
    margin-top: 4rem;
}

.footer-content-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.footer-bottom-responsive {
    border-top: 1px solid var(--outline);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom-responsive {
        flex-direction: column;
        text-align: center;
    }
}

