/* ============================================
   MatchDay News - Responsive Stylesheet
   ============================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --container-padding: 1.5rem;
    }

    .header-main-content {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: var(--spacing-md);
    }

    .nav-list {
        gap: 0;
    }

    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --spacing-3xl: 2.5rem;
        --spacing-2xl: 2rem;
    }

    .header-top {
        display: none;
    }

    .header-main {
        padding: var(--spacing-sm) 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-primary);
        z-index: 1001;
        transition: left var(--transition-base);
        border-top: none;
        box-shadow: var(--shadow-xl);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-xs);
    }

    .nav-link {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link::after {
        display: none;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-base), visibility var(--transition-base);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .breaking-news-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .ticker-wrapper {
        width: 100%;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .live-matches-grid {
        grid-template-columns: 1fr;
    }

    .match-card {
        padding: var(--spacing-md);
    }

    .team-logo {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .score {
        font-size: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 180px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .category-card {
        padding: var(--spacing-lg);
    }

    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .category-name {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .scroll-top {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-description {
        font-size: 1rem;
    }
}

/* Small Mobile (320px - 374px) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .team-name {
        font-size: 0.875rem;
    }

    .score {
        font-size: 1.25rem;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .live-matches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .sidebar,
    .footer,
    .scroll-top,
    .breaking-news,
    .theme-toggle,
    .mobile-menu-btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }

    a {
        text-decoration: underline;
    }

    .blog-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
