/* ============================================
   DASTUZIA - Responsive Styles
   Single Page Layout
   ============================================ */

/* ========== LARGE DESKTOP (1280px+) ========== */
@media (min-width: 1280px) {
    .cards-grid--games {
        gap: var(--space-6);
        max-width: 1100px;
    }
    
    .cards-grid--extras {
        max-width: 550px;
        gap: var(--space-6);
    }
}

/* ========== DESKTOP (1024px - 1279px) ========== */
@media (min-width: 1024px) and (max-width: 1279px) {
    .cards-grid--games {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
    }
}

/* ========== TABLET (768px - 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
    .cards-grid--games {
        grid-template-columns: repeat(3, 1fr);
        max-width: 650px;
    }
    
    .cards-grid--games .game-card:nth-child(5) { grid-column: auto; }
    .cards-grid--games .game-card:nth-child(6) { grid-column: auto; }
    .cards-grid--games .game-card:nth-child(7) { grid-column: 2 / 3; }
    
    .cards-grid--extras {
        max-width: 400px;
    }
    
    .side-toggle {
        left: var(--space-4);
    }
}

/* ========== MOBILE LANDSCAPE & SMALL TABLETS (600px - 767px) ========== */
@media (min-width: 600px) and (max-width: 767px) {
    .cards-grid--games {
        grid-template-columns: repeat(3, 1fr);
        max-width: 550px;
        gap: var(--space-3);
    }
    
    .cards-grid--games .game-card:nth-child(5) { grid-column: auto; }
    .cards-grid--games .game-card:nth-child(6) { grid-column: auto; }
    .cards-grid--games .game-card:nth-child(7) { grid-column: 2 / 3; }
    
    .game-card__title {
        font-size: var(--text-sm);
    }
    
    .section__title {
        font-size: var(--text-xl);
    }
}

/* ========== MOBILE (max 599px) ========== */
@media (max-width: 599px) {
    .side-toggle {
        left: var(--space-2);
    }
    
    .side-toggle__dot {
        width: 12px;
        height: 12px;
    }
    
    .side-toggle__label {
        display: none;
    }
    
    .cards-grid--games {
        grid-template-columns: repeat(2, 1fr);
        max-width: 340px;
        gap: var(--space-3);
    }
    
    .cards-grid--games .game-card:nth-child(5) { grid-column: auto; }
    .cards-grid--games .game-card:nth-child(6) { grid-column: auto; }
    .cards-grid--games .game-card:nth-child(7) { 
        grid-column: 1 / 3;
        max-width: 160px;
        justify-self: center;
    }
    
    .cards-grid--extras {
        max-width: 300px;
    }
    
    .section__title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-4);
    }
    
    .section {
        padding: var(--space-4);
    }
    
    .game-card__title {
        font-size: var(--text-sm);
    }
    
    .game-card__players {
        padding: var(--space-1) var(--space-2);
        font-size: 10px;
    }
    
    .scroll-hint {
        bottom: var(--space-4);
        font-size: var(--text-xs);
    }
}

/* ========== VERY SMALL MOBILE (max 380px) ========== */
@media (max-width: 380px) {
    .cards-grid--games {
        max-width: 280px;
        gap: var(--space-2);
    }
    
    .cards-grid--extras {
        max-width: 260px;
    }
    
    .header__logo-text {
        font-size: var(--text-base);
    }
}

/* ========== TOUCH DEVICES ========== */
@media (hover: none) {
    .side-toggle__label {
        display: none;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .scroll-hint__arrow {
        animation: none;
    }
}
