/* Responsive Design - Zero Hum Extreme Sports */
/* Mobile-first approach with extreme sports focus */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    section h2 {
        font-size: 3rem;
    }

    .sports-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .team-grid,
    .store-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        height: 90vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
        letter-spacing: 1px;
    }

    .sports-grid,
    .team-grid,
    .store-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card.featured {
        grid-template-columns: 1fr;
    }

    .sport-card,
    .news-card,
    .athlete-card,
    .product-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .sport-content,
    .news-content,
    .athlete-info,
    .product-info {
        padding: 1.5rem;
    }

    .sport-content h3,
    .news-content h3,
    .athlete-info h4,
    .product-info h4 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .content-article h3 {
        font-size: 1.3rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo .tagline {
        font-size: 0.7rem;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .sport-card,
    .news-card,
    .athlete-card,
    .product-card {
        max-width: 100%;
    }

    .sport-image,
    .news-image,
    .athlete-image,
    .product-image {
        height: 180px;
    }

    .sport-placeholder,
    .news-placeholder,
    .athlete-placeholder,
    .product-placeholder {
        font-size: 3rem;
    }

    .sport-content h3 {
        font-size: 1.3rem;
    }

    .news-content h3 {
        font-size: 1.4rem;
    }

    .athlete-info h4 {
        font-size: 1.5rem;
    }

    .product-info h4 {
        font-size: 1.3rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .team p,
    .store p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .whatsapp-btn {
        bottom: 1rem;
        right: 1rem;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .article-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .content-article h3 {
        font-size: 1.1rem;
        margin: 2rem 0 1rem;
    }

    .article-content ul {
        padding-left: 1.5rem;
    }

    .article-content li {
        margin-bottom: 0.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .hero-overlay {
        background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(255, 69, 0, 0.4) 50%,
            rgba(255, 215, 0, 0.3) 100%);
    }

    .sport-image,
    .news-image,
    .athlete-image,
    .product-image {
        height: 160px;
    }

    .sport-placeholder,
    .news-placeholder,
    .athlete-placeholder,
    .product-placeholder {
        font-size: 2.5rem;
    }

    .sport-content,
    .news-content,
    .athlete-info,
    .product-info {
        padding: 1.2rem;
    }

    .btn {
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .article-content {
        font-size: 0.9rem;
    }

    .content-article h3 {
        font-size: 1rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-video-bg video {
        filter: brightness(0.3) contrast(1.3);
    }

    .sport-placeholder,
    .news-placeholder,
    .athlete-placeholder,
    .product-placeholder {
        filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.6));
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .footer,
    .whatsapp-btn {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
    }

    section {
        page-break-inside: avoid;
    }

    .sport-card,
    .news-card,
    .athlete-card,
    .product-card {
        break-inside: avoid;
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }

    .btn {
        display: none !important;
    }

    h1, h2, h3, h4 {
        color: black !important;
    }

    .article-content {
        color: black !important;
    }
}

/* 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;
    }

    .hero-video-bg video {
        display: none;
    }

    .hero {
        background: linear-gradient(45deg, var(--preto), var(--laranja));
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --amarelo: #ffff00;
        --laranja: #ff6600;
        --preto: #000000;
        --branco: #ffffff;
        --cinza-claro: #ffffff;
        --cinza-medio: #cccccc;
        --cinza-escuro: #333333;
    }

    .sport-card,
    .news-card,
    .athlete-card,
    .product-card {
        border: 2px solid var(--branco);
    }

    .btn {
        border-width: 4px;
    }
}

/* Focus Visible */
.btn:focus-visible,
.nav a:focus-visible {
    outline: 3px solid var(--amarelo);
    outline-offset: 3px;
}

/* Dark Mode (already dark, but enhance) */
@media (prefers-color-scheme: dark) {
    :root {
        --preto: #000000;
        --preto-escuro: #0a0a0a;
        --cinza-escuro: #1a1a1a;
        --cinza-medio: #333333;
        --cinza-claro: #cccccc;
        --branco: #ffffff;
    }
}

/* Orientation Changes */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        height: 80vh;
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .sport-card,
    .news-card,
    .athlete-card,
    .product-card {
        transform: none !important;
    }

    .sport-card:active,
    .news-card:active,
    .athlete-card:active,
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn:active {
        transform: scale(0.95);
    }
}

/* Safari Specific */
@supports (-webkit-appearance: none) {
    .hero-video-bg video {
        object-fit: cover;
        transform: translateZ(0); /* Force hardware acceleration */
    }
}

/* Firefox Specific */
@-moz-document url-prefix() {
    .hero-video-bg video {
        height: 100vh; /* Firefox video height fix */
    }
}

/* Edge Specific */
@supports (-ms-ime-align: auto) {
    .hero-overlay {
        background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(255, 69, 0, 0.3) 50%,
            rgba(255, 215, 0, 0.2) 100%);
    }
}


