@import url('https://fonts.cdnfonts.com/css/minecraftia');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --mc-font: 'Minecraftia', sans-serif;
    --body-font: 'Inter', sans-serif;
    --mc-green: #55FF55;
    --mc-gold: #FFAA00;
    --mc-aqua: #55FFFF;
    --mc-red: #FF5555;
    --discord-blue: #5865F2;
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 30px 16px;
    background: #573d26 url('https://raw.githubusercontent.com/InventivetalentDev/minecraft-assets/1.20.1/assets/minecraft/textures/block/dirt.png') repeat;
    background-size: 64px;
    font-family: var(--body-font);
    color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.wrapper {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- HORNI PANEL A LOGO --- */
.header {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 20px;
}

.main-title {
    font-family: var(--mc-font);
    font-size: clamp(36px, 8vw, 68px);
    margin: 0;
    letter-spacing: 2px;
    color: var(--mc-gold);
    text-shadow: 4px 4px 0px #000, -3px -3px 0px #000, 3px -3px 0px #000, -3px 3px 0px #000, 7px 7px 0px rgba(0, 0, 0, 0.8);
    display: inline-block;
    animation: mcFloat 3s ease-in-out infinite alternate, mcGlow 2s ease-in-out infinite alternate;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: default;
}

.main-title:hover {
    transform: scale(1.08) rotate(-1deg);
    color: #ffffff;
}

.subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 14px;
    text-shadow: 2px 2px 0px #000;
}

/* --- DISCORD TLAČÍTKO --- */
.discord-top-block {
    width: 100%;
    max-width: 480px;
    margin: 15px 0 25px 0;
}

.mc-btn-discord {
    background: linear-gradient(180deg, #6975f3 0%, #4752c4 100%);
    border: 2px solid #8892f7;
    border-bottom: 4px solid #2b3599;
    color: #ffffff;
    font-family: var(--mc-font);
    font-size: 12px;
    padding: 16px 20px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    text-shadow: 2px 2px 0px #000;
    transition: all 0.15s ease;
}

.mc-btn-discord:hover {
    background: linear-gradient(180deg, #7984f5 0%, #515dd4 100%);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
}

.discord-icon {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    filter: drop-shadow(2px 2px 0px #000);
}

/* --- STATISTIKY --- */
.stats-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 25px;
    width: 100%;
}

.stat-box {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 16px 12px;
    background: rgba(18, 14, 11, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.stat-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #d0d0d0;
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--mc-font);
    font-size: clamp(18px, 4vw, 24px);
    color: var(--mc-green);
    text-shadow: 2px 2px 0px #000;
}

/* --- NAVIGACE --- */
.menu-section {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 10px;
    z-index: 100;
    margin-bottom: 30px;
    background: rgba(18, 14, 11, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    width: 100%;
}

.mc-btn {
    font-family: var(--mc-font);
    font-size: clamp(8px, 1.3vw, 11px);
    text-align: center;
    padding: 12px 6px;
    color: #ffffff;
    background-color: #585858;
    flex: 1;
    box-sizing: border-box;
    border-top: 3px solid #989898;
    border-left: 3px solid #989898;
    border-right: 3px solid #222222;
    border-bottom: 3px solid #222222;
    text-shadow: 2px 2px 0px #000;
    cursor: pointer;
    transition: all 0.1s ease;
    border-radius: 4px;
}

.mc-btn:hover {
    background-color: #707070;
    color: var(--mc-gold);
}

.mc-btn.active {
    background-color: #383838;
    color: var(--mc-gold);
    border-top-color: #222222;
    border-left-color: #222222;
    border-right-color: #989898;
    border-bottom-color: #989898;
}

/* --- OBSAH RUBRIK --- */
.tab-content { display: none; width: 100%; }
.tab-content.active { display: block; }

.card-panel {
    background: rgba(18, 14, 11, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    width: 100%;
    margin-bottom: 30px;
    padding: 36px 28px;
    text-align: center;
}

.section-h2 {
    font-family: var(--mc-font);
    font-size: clamp(20px, 3.5vw, 26px);
    color: var(--mc-gold);
    text-align: center;
    margin: 0 0 18px 0;
    text-shadow: 2px 2px 0px #000;
}

.section-subtext {
    text-align: center;
    font-size: 14px;
    color: #d0d0d0;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- HLAVNÍ KONTEJNER PRO SEZNAMY (PRAVIDLA, HLAVNÍ STRÁNKA, KROKY PŘIPOJENÍ, INFORMACE) --- */
.features-grid, .rules-list, .steps-container, .info-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    margin-top: 20px;
}

.feature-card, .rule-item, .step-card {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.feature-title, .rule-title, .step-card strong, .step-title {
    font-family: var(--mc-font);
    font-size: 13px;
    color: var(--mc-gold);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0px #000;
}

.feature-desc, .rule-desc, .step-card p, .step-desc {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
    padding-top: 12px;
}

.step-card .mc-btn-download {
    margin: 10px auto 4px auto;
}

/* --- INFORMACE & KE STAŽENÍ (VYROVNANÉ DO KONTEJNERŮ) --- */
.ip-box {
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed var(--mc-gold);
    padding: 16px 20px;
    text-align: center;
    font-family: var(--mc-font);
    font-size: clamp(12px, 2vw, 15px);
    color: var(--mc-green);
    border-radius: 12px;
    margin: 0 0 20px 0;
    user-select: text;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    text-shadow: 2px 2px 0px #000;
}

.warning-box {
    background: rgba(255, 85, 85, 0.1);
    border: 1px solid rgba(255, 85, 85, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.6;
}

.warning-title {
    color: var(--mc-red);
    font-family: var(--mc-font);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
}

.mc-btn-download {
    background-color: #2e7d32;
    border-top: 3px solid #4caf50;
    border-left: 3px solid #4caf50;
    border-right: 3px solid #1b5e20;
    border-bottom: 3px solid #1b5e20;
    font-family: var(--mc-font);
    font-size: 11px;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    margin: 12px 0;
    transition: all 0.15s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-shadow: 2px 2px 0px #000;
}

.mc-btn-download:hover {
    background-color: #388e3c;
    transform: translateY(-2px);
    color: #fff;
}

/* --- ŽEBŘÍČEK --- */
.lb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
}

.lb-column {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.lb-column h3 {
    font-family: var(--mc-font);
    font-size: 13px;
    margin: 0 0 16px 0;
    color: var(--mc-aqua);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

.lb-table { width: 100%; border-collapse: collapse; }
.lb-table td { padding: 10px 4px; font-size: 13px; font-weight: 600; }
.rank { font-family: var(--mc-font); width: 30px; font-size: 11px; text-align: center; }
.rank-1 { color: #ffaa00; }
.rank-2 { color: #dddddd; }
.rank-3 { color: #ff5555; }
.player-name { color: #ffffff; text-align: left; padding-left: 8px; }
.score { text-align: right; font-family: var(--mc-font); font-size: 11px; color: var(--mc-green); }
.score-death { text-align: right; font-family: var(--mc-font); font-size: 11px; color: var(--mc-red); }

/* --- AKTUALIZACE --- */
.forum-threads {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.update-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.2s;
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.update-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
}

.update-header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.thread-badge {
    background: var(--mc-gold);
    color: #000;
    font-family: var(--mc-font);
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 3px;
}

.update-title {
    font-family: var(--mc-font);
    font-size: 12px;
    color: var(--mc-aqua);
}

.update-date {
    font-size: 11px;
    color: #888888;
}

.toggle-icon {
    font-family: var(--mc-font);
    font-size: 12px;
    color: var(--mc-gold);
    transition: transform 0.2s ease;
}

.update-item.open .toggle-icon {
    transform: rotate(180deg);
}

.update-content {
    display: none;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    font-size: 13px;
    color: #dddddd;
    line-height: 1.7;
    text-align: center;
}

.update-item.open .update-content {
    display: block;
}

.update-author {
    margin-top: 14px;
    font-size: 11px;
    color: #aaaaaa;
    text-align: center;
}

/* --- ANIMACE PRO LOGO --- */
@keyframes mcFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes mcGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 170, 0, 0.2));
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(255, 170, 0, 0.8));
    }
}
/* Styly pro stav serveru */
.server-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    background-color: #888; /* Výchozí šedá */
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.status-dot.online {
    background-color: #55ff55;
    box-shadow: 0 0 8px #55ff55;
}

.status-dot.offline {
    background-color: #ff5555;
    box-shadow: 0 0 8px #ff5555;
}

.status-text {
    font-family: var(--mc-font, monospace);
    font-size: 16px;
    color: #fff;
}
