/* ============================================================
   Nogden.eu - Admin Team
   ============================================================ */

/* --- 1. Background identical to index --- */
body.vote-page {
    width: 100%;
    min-height: 100vh;
    background-color: #181a1b !important;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Background fix for PC (original style preserved) */
@media (min-width: 769px) {
    body.vote-page {
        background: 
            linear-gradient(rgba(24, 26, 27, 0.8), rgba(24, 26, 27, 0.8)), 
            url('/files/pictures/bcknogden.webp') !important;
        background-position: center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-attachment: fixed !important;
    }
}

/* --- 2. Hero Section --- */
.team-hero {
    padding: 180px 20px 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.team-hero h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.team-hero p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Změna barvy statusu pro otevřený nábor */
.status-badge span { color: #04fc34; }

/* Stylování náborového tlačítka v Hero sekci */
.team-hero .btn {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(176, 0, 244, 0.4);
    filter: brightness(1.1);
}

/* --- 3. Container and Categories --- */
.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.team-category {
    margin-bottom: 80px;
}

.category-header {
    margin-bottom: 45px;
    text-align: center;
}

.category-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    color: #ffffff;
    display: inline-block;
    padding-bottom: 12px;
    border-bottom: 3px solid #b000f4;
}

/* --- 4. Grid and Cards --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.member-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 45px 20px 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.member-card:hover {
    background-color: rgba(176, 0, 244, 0.06);
    border-color: rgba(176, 0, 244, 0.3);
    transform: translateY(-10px);
}

.rank-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.avatar-wrapper {
    margin: 20px auto;
    width: 125px;
    height: 125px;
    position: relative;
}

.avatar-wrapper img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
}

.member-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 10px;
    letter-spacing: 0.5px;
    color: #fff;
}

/* --- 5. Responsiveness and iPhone background fix --- */
@media (max-width: 768px) {
    #nav-menu li a:hover,
    #nav-menu li a.store-link:hover {
        background-color: rgba(176, 0, 244, 0.15) !important;
        color: #ffffff !important;
        border-radius: 8px;
        box-shadow: none !important; 
    }

    #nav-menu li a.active {
        background-color: rgba(176, 0, 244, 0.25) !important;
        color: #b000f4 !important;
        box-shadow: inset 6px 0 0 0 #b000f4 !important;
        border-radius: 4px 12px 12px 4px !important;
        font-weight: 800 !important;
    }

    #nav-menu li a.store-link {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        background: transparent !important;
    }

    body.vote-page::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/files/pictures/bcknogden.webp');
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
        z-index: -1;
        pointer-events: none;
        background-color: rgba(24, 26, 27, 0.8);
        background-blend-mode: darken;
    }

    .team-hero { 
        padding-top: 140px; 
        background: transparent !important;
    }

    .category-header h2 { font-size: 1.5rem; letter-spacing: 2px; }
    
    .team-grid { 
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); 
    }
}

@media (max-width: 480px) {
    .team-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 15px; 
    }
}