/* --- GLOBÁLNÍ NASTAVENÍ --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif; 
    background-color: #121212; 
    color: white; 
    overflow-x: hidden; 
    /* Aby patička zůstala dole */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Pojistka pro obrázky */
img {
    max-width: 100%;
    height: auto;
}

/* --- 1. HLAVIČKA (HEADER) --- */
header {
    width: 100%;
    min-height: 100px; 
    background-color: #1b1e31;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 10px 40px;
    z-index: 100;
    position: relative;
}

.logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; 
}

/* Styl tlačítek v hlavičce */
.nav-item {
    text-decoration: none;
    color: #cccccc;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap; 
}

.nav-item:hover, .nav-item.active {
    background-color: #293a66;
    border-color: #293a66;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.discord-header-btn {
    text-decoration: none;
    background-color: #5865F2; 
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #5865F2;
    transition: all 0.3s ease;
    margin-left: 10px;
    white-space: nowrap;
}

.discord-header-btn:hover {
    background-color: #4752c4;
    transform: scale(1.05);
}

/* --- ROZLOŽENÍ STRÁNKY --- */
.layout-wrapper {
    display: flex; 
    flex: 1; 
}

/* --- LEVÝ PANEL (SIDEBAR) --- */
.left-sidebar {
    width: 25%;
    background-color: #1a1a1a; 
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid #333;
    flex-shrink: 0; 
}

.sidebar-title {
    color: #5865F2; 
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.section-separator {
    height: 1px;
    background-color: #333;
    margin: 15px 0;
    width: 100%;
}

/* Tlačítka v levém menu */
.tab-btn {
    appearance: none;
    outline: none;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    width: 100%; 
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: #cccccc;
    padding: 12px 25px; 
    border-radius: 30px; 
    font-size: 0.95rem;
    font-weight: bold;
    text-align: left;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background-color: #293a66; 
    border-color: #293a66;
    color: white;
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}

.tab-btn i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* --- PRAVÁ STRANA (OBSAH) --- */
.rules-content {
    width: 75%;
    background-color: #121212; 
    padding: 50px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.rule-title {
    color: #ffffff; 
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 3px solid #5865F2;
    display: inline-block;
    padding-bottom: 10px;
    word-wrap: break-word;
}

/* Box s pravidly */
.rule-text-box {
    background-color: #1e1e1e; 
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

/* Jednotlivý blok pravidla */
.rule-block {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333; 
}

.rule-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Nadpisy pravidel */
.red-header {
    color: #ff4d4d; 
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rule-block p, .rule-block ul, .rule-block li {
    color: #e0e0e0; 
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 5px;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

/* --- PATIČKA (FOOTER) --- */
footer {
    background-color: #151515;
    border-top: 1px solid #333;
    padding: 40px 0;
    margin-top: auto; 
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap; 
    gap: 20px;
}

.footer-left-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    height: 50px;
    width: auto;
    align-self: flex-start;
}

.footer-text p {
    margin: 5px 0;
    color: #888;
    font-size: 0.9rem;
}

.footer-text .author {
    color: #555;
    font-size: 0.8rem;
}

.footer-right-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-link:hover img {
    transform: scale(1.1);
}

/* --- UPRAVENÉ TLAČÍTKO SCROLL TOP (Jako v menu) --- */
.scroll-top-btn {
    /* Změna z plné barvy na průhlednou */
    background-color: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: #cccccc;
    
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #293a66; /* Stejná modrá jako v menu */
    border-color: #293a66;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-top-btn i {
    font-size: 1.1rem;
}

/* ========================================= */
/* --- RESPONZIVITA (MOBIL A TABLET) --- */
/* ========================================= */

@media (max-width: 1024px) {
    /* 1. Úprava hlavičky - prvky pod sebe */
    header {
        flex-direction: column;
        padding: 20px;
        height: auto;
    }

    .nav-menu {
        margin-top: 20px;
        flex-direction: column; 
        width: 100%;
        gap: 10px;
    }

    .nav-item, .discord-header-btn {
        width: 100%; 
        justify-content: center; 
        margin-left: 0;
    }

    /* 2. Změna rozložení stránky (sloupce pod sebe) */
    .layout-wrapper {
        flex-direction: column;
    }

    /* Levý panel bude nahoře a bude přes celou šířku */
    .left-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 20px;
    }

    /* Pravý obsah bude pod tím a taky přes celou šířku */
    .rules-content {
        width: 100%;
        padding: 20px; 
    }

    /* 3. Úprava textů pro malé displeje */
    .rule-title {
        font-size: 1.8rem; 
    }
    
    .rule-text-box {
        padding: 20px; 
    }

    .red-header {
        font-size: 1.1rem;
    }
    
    /* Na mobilu se tlačítka v menu trochu zmenší */
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* 4. Patička na mobilu */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left-brand {
        align-items: center;
    }

    .footer-logo {
        align-self: center;
    }

    .footer-right-actions {
        align-items: center;
    }
}