/* --- Globální nastavení a Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0b0f19;
    color: #f8fafc;
    background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Navigační panel (Navbar) - IDENTICKÝ S PRAVIDLY --- */
.navbar, /* Skrytí mobilního přepínače na větších obrazovkách */
/* --- Hlavička stránky (Header) - IDENTICKÝ S PRAVIDLY --- */
.pravidla-header {
    background-image: linear-gradient(to bottom, rgba(11, 15, 25, 0.75), rgba(11, 15, 25, 0.9)), url('/assets/img/novinky_pozadi.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 150px 20px; 
    color: #ffffff; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pravidla-header h1 {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .pravidla-header h1 {
        font-size: 72px;
    }
}

/* --- Hlavní obsah a Mřížka (Grid) --- */
.content-container {
    max-width: 1152px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 60px 16px;
}

.team-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding-left: 14px;
    margin: 40px 0 20px 0;
}

.team-section-title:first-of-type {
    margin-top: 32px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Stav při načítání / prázdný tým */
.team-status-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    padding: 40px 0;
}

/* --- Karty členů týmu --- */
.member-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6; /* Sjednocený hover efekt s pravidly */
}

.member-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px auto;
    border-radius: 16px;
    display: block;
    background-color: #0f172a;
}

.member-card h3 {
    font-weight: 700;
    font-size: 18px;
    word-wrap: break-word;
}

/* --- Role a barvy (starší statické karty, ponechané kvůli zpětné kompatibilitě) --- */
.role {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.role-owner, .role-admin { color: #60a5fa; }
.role-devmain { color: #eab308; }
.role-dev { color: #22d3ee; }
.role-helper-elite { color: #38bdf8; }
.role-helper { color: #38bdf8; }
.role-helper-trial { color: #b3963f; }
.role-builder { color: #818cf8; }

/* --- Role a barvy pro dynamicky načtený tým z admin panelu ---
   Klíče odpovídají hodnotě "pozice" uložené ve Firestore kolekci "tym",
   stejné barvy jako štítky v admin panelu, ať je vzhled napříč webem jednotný. */
.role-majitel { color: #f87171; }
.role-manager { color: #fb923c; }
.role-position-admin { color: #facc15; }
.role-position-hldev { color: #c084fc; }
.role-position-webdev { color: #d8b4fe; }
.role-position-hlhelper { color: #3b82f6; }
.role-position-elitnihelper { color: #4b73d8; }
.role-position-hlbuilder { color: #16a34a; }
.role-position-elitnibuilder { color: #2dd4bf; }
.role-position-helper { color: #60a5fa; }
.role-zk-helper { color: #93c5fd; }
.role-position-builder { color: #4ade80; }
.role-zk-builder { color: #86efac; }

/* --- Náborový box (CTA) --- */
.cta-box {
    margin-top: 60px;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.2), rgba(49, 46, 129, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 32px 16px;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 15px;
}

.btn-cta {
    background-color: #2563eb;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
}

.btn-cta:hover {
    background-color: #3b82f6;
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #eef5ff, transparent);
    margin: 60px auto;
    width: 80%;
}

@media (min-width: 768px) {
    .cta-box {
        margin-top: 80px;
        padding: 40px;
    }
    .cta-box h2 {
        font-size: 24px;
    }
    .btn-cta {
        padding: 16px 32px;
    }
}

/* --- Patička (Footer) --- */
.main-footer {
    background-color: #1e293b;
    border-top: 1px solid #334155;
    padding: 32px 0;
    text-align: center;
    margin-top: auto;
}

.main-footer p {
    color: #64748b;
    font-size: 14px;
}
