/* =========================================
   VARIANTA FINALA REPARATA - HEADER + GRID
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f0f2f5; font-family: 'Segoe UI', Arial, sans-serif; color: #333; }

/* 1. HEADER - REPARATIE TOTALA (PE TOT ECRANUL) */
.header {
    width: 100% !important;
    background: linear-gradient(135deg, #c00 0%, #ff4444 50%, #00aaff 100%) !important;
    padding: 12px 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1850px !important; /* Aliniat cu containerul de jos */
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
}

.logo { 
    font-size: 24px; 
    font-weight: 900; 
    color: #fff !important; 
    text-decoration: none !important;
    letter-spacing: -1px;
}

/* CATEGORII IN DREAPTA */
.categories { 
    display: flex !important; 
    gap: 10px !important; 
    align-items: center;
}

.cat-btn { 
    background: rgba(255,255,255,0.2) !important; 
    color: #fff !important; 
    padding: 6px 15px !important; 
    border-radius: 20px !important; 
    text-decoration: none !important; 
    font-size: 11px !important; 
    font-weight: bold !important;
    text-transform: uppercase;
    transition: 0.3s;
}
.cat-btn:hover { background: #fff !important; color: #c00 !important; }

/* 2. LAYOUT PRINCIPAL (2 COLOANE) */
.container {
    display: grid !important;
    grid-template-columns: 1fr 300px !important; 
    gap: 20px !important;
    max-width: 1850px;
    margin: 20px auto;
    padding: 0 20px;
    align-items: start;
}

/* 3. GRID MODELE - 230PX INALTIME / 3PX GAP */
.main-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 3px !important; /* DISTANTA CERUTA DE TINE */
}

.model-card {
    width: 100% !important;
    height: 230px !important; /* INALTIMEA CERUTA DE TINE */
    background: #000;
    position: relative !important;
    overflow: hidden;
    display: block !important;
    text-decoration: none !important;
}

.model-avatar {
    width: 100% !important; height: 100% !important;
    background-size: cover !important; 
    background-position: center !important;
    position: absolute; top: 0; left: 0;
}

/* PLAY & LIVE */
.model-card::after {
    content: '▶'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: rgba(255,255,255,0.9);
    color: #c00; border-radius: 50%; display: flex; 
    align-items: center; justify-content: center; font-size: 18px; z-index: 5;
}
.status-indicator {
    position: absolute; top: 8px; left: 8px;
    background: #00b300; color: #fff; padding: 3px 8px;
    border-radius: 3px; font-weight: bold; font-size: 10px; z-index: 10;
}

/* 4. SIDEBAR - BANNERE BONGA 250PX */
.sidebar {
    width: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.sidebar .banner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 250px !important; /* INALTIME FIXA BANNERE */
    border-radius: 10px;
    text-decoration: none !important;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.banner-text { color: #fff !important; font-size: 20px; font-weight: 900; text-transform: uppercase; line-height: 1.2; margin-bottom: 10px; }
.banner-small { color: #fff !important; background: rgba(0,0,0,0.2); padding: 5px 12px; border-radius: 5px; font-size: 12px; }

/* TEXT COUNTER */
.live-counter { font-weight: bold; margin-bottom: 15px; font-size: 14px; color: #444; }

/* =========================================
   REPARATIE MOBIL - VARIANTA "CURATA" 1 PE RAND
   ========================================= */

@media (max-width: 1024px) {
    /* Tablete - 3 pe rand */
    .main-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    /* TELEFON - REPARATIE FINALA */
    
    /* 1. Containerul - Scoatem grid-ul si punem coloana simpla */
    .container {
        display: block !important; /* Anulam grid-ul principal */
        padding: 10px !important;
        width: 100% !important;
    }

    /* 2. MODELELE - 1 SINGUR PE RAND (Sa nu fie inghesuite) */
    .main-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important; /* Distanta intre ele sa respire */
    }

    /* 3. CARDUL DE MODEL - ASPECT TV PE MOBIL */
    .model-card {
        width: 100% !important;
        height: 250px !important; /* Inaltime generoasa sa se vada bine */
        border-radius: 10px !important;
    }

    /* 4. SIDEBAR-UL - SE DUCE SUB MODELE */
    .sidebar {
        width: 100% !important;
        margin-top: 30px !important;
        padding: 0 !important;
    }

    /* 5. BANNERELE DIN SIDEBAR - COLORATE SI MARI */
    .sidebar .banner {
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 10px !important;
    }

    /* 6. HEADERUL - Sa nu ocupe jumatate de ecran */
    .header-content {
        flex-direction: column !important;
        text-align: center;
    }
    
    .categories {
        margin-top: 10px;
        display: flex !important;
        flex-wrap: wrap !important; /* Se pun pe 2 randuri daca sunt multe */
        justify-content: center !important;
        gap: 5px !important;
    }

    .cat-btn {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
}
