/* --- ZÁKLADNÍ NASTAVENÍ A BARVY --- */
:root {
    --bg-dark: #0f0f11;
    --bg-card: #1a1a1d;
    --primary-orange: #ff6a00;
    --primary-hover: #ff8433;
    --text-light: #f3f4f6;
    --text-gray: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVIGACE --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 106, 0, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span { color: var(--primary-orange); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary-orange); }

.store-btn {
    background-color: var(--primary-orange);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

.store-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- HERO SEKCE (index.php) --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Nahraď vlastním obrázkem ze serveru */
    background: linear-gradient(rgba(15, 15, 17, 0.8), rgba(15, 15, 17, 0.95)), url('https://images.unsplash.com/photo-1607513746994-51f736a57508?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--primary-orange);
    text-shadow: 0 0 20px rgba(255, 106, 0, 0.4);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- IP BOX --- */
.ip-box {
    background-color: var(--bg-card);
    border: 2px solid var(--primary-orange);
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.2);
}

.ip-box:hover {
    background-color: var(--primary-orange);
    color: #fff;
    transform: scale(1.05);
}

/* --- OBECNÝ OBSAH STRÁNEK (Podstránky) --- */
.page-content {
    padding: 120px 5% 60px 5%; /* Odsazení od fixního menu */
    max-width: 1200px;
    margin: 0 auto;
    flex: 1; /* Aby patička zůstala dole */
    width: 100%;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.page-title span { color: var(--primary-orange); }

/* --- KARTY (o-nas.php) --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    border-top: 4px solid var(--primary-orange);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-10px); }
.card i { font-size: 3rem; color: var(--primary-orange); margin-bottom: 20px; }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: var(--text-gray); }

/* --- PRAVIDLA (pravidla.php) --- */
.rules-header {
    text-align: center;
    margin-bottom: 60px;
}

.rules-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.rules-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Hlavní kategorie (Boxy pro MC a Discord) */
.rule-category {
    background: linear-gradient(145deg, var(--bg-card) 0%, #111113 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.category-header i {
    font-size: 2.5rem;
}

.category-header h2 {
    font-size: 2rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Barevné odlišení kategorií */
.mc-category {
    border-top: 4px solid var(--primary-orange);
}
.mc-category .category-header i {
    color: var(--primary-orange);
}

.discord-category {
    border-top: 4px solid #5865F2;
}
.discord-category .category-header i {
    color: #5865F2;
}

/* Upozornění na začátku kategorie */
.category-intro {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: var(--text-gray);
    font-style: italic;
}

.warning-intro {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.warning-intro i {
    font-size: 1.5rem;
    color: #ef4444;
}

/* Podkategorie (např. Obecné zásady) */
.subcategory-title {
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mt-40 { margin-top: 40px; }

/* Samotná pravidla - Mřížka */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.rule-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.discord-category .rule-item:hover {
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.05);
}

.mc-category .rule-item:hover {
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.05);
}

.rule-item i {
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.discord-category .rule-item:hover i {
    color: #fff;
    background-color: #5865F2;
}

.mc-category .rule-item:hover i {
    color: #fff;
    background-color: var(--primary-orange);
}

.rule-text h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.rule-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsivita pravidel */
@media (max-width: 768px) {
    .rule-category {
        padding: 25px 15px;
    }
    .rules-grid {
        grid-template-columns: 1fr;
    }
    .category-header h2 {
        font-size: 1.5rem;
    }
}
/* --- ELEGANTNÍ DISCORD SEKCE --- */
.discord-premium {
    padding: 100px 5%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
}

.discord-premium-content {
    /* Tmavé pozadí s velmi lehkým nádechem Discord fialovomodré */
    background: linear-gradient(135deg, var(--bg-card) 0%, #15151a 100%);
    border: 1px solid rgba(88, 101, 242, 0.15); 
    border-radius: 24px;
    padding: 60px;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Jemné světlo na pozadí karty */
.discord-premium-content::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.discord-text {
    position: relative;
    z-index: 1;
    max-width: 550px;
}

.discord-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.discord-text h2 span {
    color: #5865F2; /* Text s barvou Discordu pro oživení */
}

.discord-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.discord-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #5865F2;
    color: #fff;
    padding: 16px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.25);
}

.btn-discord:hover {
    background-color: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.4);
}
/* Velké logo na pozadí */
.discord-icon-bg {
    position: relative;
    z-index: 1;
    margin-right: 40px;
}

.discord-icon-bg i {
    font-size: 16rem;
    color: rgba(88, 101, 242, 0.04);
    transform: rotate(-15deg);
    transition: all 0.6s ease;
}

.discord-premium-content:hover .discord-icon-bg i {
    transform: rotate(0deg) scale(1.05);
    color: rgba(88, 101, 242, 0.08);
}

/* --- RESPONSIVITA PRO DISCORD --- */
@media (max-width: 900px) {
    .discord-premium-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .discord-text {
        max-width: 100%;
    }
    
    .discord-actions {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }
    
    .discord-icon-bg {
        display: none; /* Skryjeme logo na mobilech pro čistší vzhled */
    }
}
/* --- TÝM (tym.php) --- */
.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.team-category {
    margin-bottom: 70px;
}

.category-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.category-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-orange);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Karta člena týmu */
.team-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, #111113 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    width: 250px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: 0 15px 40px rgba(255, 106, 0, 0.15);
}

/* Speciální efekt pro majitele */
.owner-card {
    border: 1px solid rgba(255, 106, 0, 0.2);
}

.owner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(255, 106, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.owner-card:hover {
    box-shadow: 0 15px 40px rgba(255, 106, 0, 0.3);
}

/* Avatar stylizace */
.avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    position: relative;
}

.team-card img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    /* Dělá 3D dojem u skinů */
    image-rendering: pixelated; 
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

/* Štítky (Ranks) */
.role-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Barvy jednotlivých ranků */
.role-owner {
    background-color: rgba(255, 51, 51, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.role-headadmin {
    background-color: rgba(255, 106, 0, 0.15);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.role-admin {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-headhelper {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-helper {
    background-color: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.role-tester {
    background-color: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Responsivita pro mobily */
@media (max-width: 768px) {
    .team-grid {
        gap: 20px;
    }
    .team-card {
        width: 100%;
        max-width: 300px;
    }
}
/* --- PATIČKA --- */
footer {
    background-color: #080809;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #222;
    margin-top: auto;
}