/* =============================
   RESPONSIVE DESIGN ENHANCEMENTS
   Added: February 17, 2026
   Mobile-first responsive framework
   ============================= */

/* =============================
   RESPONSIVE VARIABLES
   ============================= */
:root {
    /* Breakpoints */
    --mobile: 320px;
    --tablet: 768px;
    --desktop: 1024px;
    --wide: 1440px;

    /* Responsive spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Touch targets */
    --touch-target-min: 44px;
}

/* =============================
   RESPONSIVE TYPOGRAPHY
   ============================= */
html {
    font-size: 16px;
    /* Base font size */
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
        /* Smaller base on mobile */
    }

    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content h1 {
        font-size: 3rem !important;
    }
}

/* =============================
   RESPONSIVE CONTAINERS
   ============================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: var(--spacing-lg);
    }
}

/* =============================
   RESPONSIVE GRIDS
   ============================= */
.matches-grid,
.merch-grid {
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: 1fr;
    /* Mobile: 1 column */
}

@media (min-width: 600px) {

    .matches-grid,
    .merch-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 columns */
        gap: var(--spacing-md);
    }
}

@media (min-width: 900px) {

    .matches-grid,
    .merch-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Desktop: 3 columns */
    }
}

@media (min-width: 1200px) {

    .matches-grid,
    .merch-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Wide: 4 columns */
        gap: var(--spacing-lg);
    }
}

/* =============================
   RESPONSIVE NAVIGATION
   ============================= */
@media (max-width: 767px) {
    .navbar {
        padding: 10px 15px !important;
    }

    .nav-left span {
        font-size: 18px !important;
        display: none;
        /* Hide text on very small screens */
    }

    .nav-left img {
        height: 35px !important;
    }

    .nav-center {
        display: none;
        /* Hidden by default on mobile */
    }

    .nav-center.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        padding: 20px;
        border-bottom: 2px solid var(--primary-color);
        z-index: 999;
    }

    .nav-center a {
        margin: 10px 0 !important;
        padding: 12px !important;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-right {
        font-size: 12px !important;
    }
}

@media (min-width: 375px) and (max-width: 767px) {
    .nav-left span {
        display: inline !important;
        /* Show text on larger phones */
        font-size: 16px !important;
    }
}

/* =============================
   RESPONSIVE HERO SECTION
   ============================= */
.hero-section {
    height: 60vh;
    /* Shorter on mobile */
    padding: var(--spacing-md);
}

@media (min-width: 768px) {
    .hero-section {
        height: 70vh;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        height: 80vh;
    }
}

.hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

@media (min-width: 600px) {
    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-md);
        width: auto;
    }
}

.hero-buttons .btn {
    width: 100%;
    min-height: var(--touch-target-min);
}

@media (min-width: 600px) {
    .hero-buttons .btn {
        width: auto;
        min-width: 150px;
    }
}

/* =============================
   RESPONSIVE CARDS
   ============================= */
.match-card,
.merch-card {
    padding: var(--spacing-sm);
}

@media (min-width: 768px) {

    .match-card,
    .merch-card {
        padding: var(--spacing-md);
    }
}

/* Match card responsive adjustments */
@media (max-width: 767px) {
    .match-teams {
        flex-direction: column;
        gap: 15px;
    }

    .team {
        width: 100%;
    }

    .vs {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .team img,
    .logo-placeholder {
        width: 50px !important;
        height: 50px !important;
    }

    .team span {
        font-size: 0.85rem;
    }
}

/* =============================
   RESPONSIVE BUTTONS
   ============================= */
.btn {
    min-height: var(--touch-target-min);
    padding: 12px 20px;
    font-size: 1rem;
}

@media (max-width: 767px) {

    .btn-block,
    .match-action .btn {
        width: 100%;
        display: block;
    }
}

/* =============================
   RESPONSIVE FORMS
   ============================= */
input,
select,
textarea,
button {
    min-height: var(--touch-target-min);
    font-size: 16px;
    /* Prevents zoom on iOS */
}

@media (max-width: 767px) {

    input,
    select,
    textarea {
        width: 100%;
    }
}

/* =============================
   RESPONSIVE TABLES
   ============================= */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    table {
        font-size: 0.875rem;
    }

    th,
    td {
        padding: 8px 4px !important;
    }
}

/* =============================
   RESPONSIVE IMAGES
   ============================= */
img {
    max-width: 100%;
    height: auto;
}

.merch-image {
    height: 200px;
}

@media (min-width: 768px) {
    .merch-image {
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .merch-image {
        height: 300px;
    }
}

/* =============================
   RESPONSIVE UTILITIES
   ============================= */
/* Hide on mobile */
.hide-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block !important;
    }
}

/* Hide on desktop */
.hide-desktop {
    display: block !important;
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile {
    display: block !important;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none !important;
    }
}

/* =============================
   RESPONSIVE SPACING
   ============================= */
.section {
    padding: var(--spacing-md) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* =============================
   RESPONSIVE MODALS
   ============================= */
@media (max-width: 767px) {
    .modal-panel {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1.5rem !important;
    }

    .modal-title {
        font-size: 1.1rem !important;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions button {
        width: 100%;
    }
}

/* =============================
   RESPONSIVE ADMIN DASHBOARD
   ============================= */
@media (max-width: 1023px) {
    .admin-surface {
        padding: 1rem !important;
        margin: 1rem !important;
    }

    .kpi-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        white-space: nowrap;
        min-width: 120px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =============================
   RESPONSIVE BACKGROUND
   ============================= */
@media (max-width: 767px) {
    body {
        background-attachment: scroll;
        /* Better performance on mobile */
    }
}

/* =============================
   RESPONSIVE MARQUEE
   ============================= */
@media (max-width: 767px) {
    .marquee-item {
        font-size: 0.9rem !important;
        margin-right: 30px !important;
    }
}

/* =============================
   TOUCH IMPROVEMENTS
   ============================= */
@media (hover: none) and (pointer: coarse) {

    /* Touch devices */
    .btn:active {
        transform: scale(0.98);
    }

    .match-card:active,
    .merch-card:active {
        transform: scale(0.99);
    }
}

/* =============================
   LANDSCAPE MOBILE FIXES
   ============================= */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 400px;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }
}

/* =============================
   PRINT STYLES
   ============================= */
@media print {

    .navbar,
    .hamburger,
    footer,
    .hero-section,
    .marquee-container {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .match-card,
    .merch-card {
        break-inside: avoid;
    }
}