/* === Blok hrdiny pod armádou === */
.hero-card {
    background: linear-gradient(135deg, #e0e7ff 0%, #fff 100%);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(60,60,120,0.08);
    padding: 1.5rem 1.2rem;
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #b3b3e6;
}
.hero-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.hero-icon {
    font-size: 2.2rem;
}
.hero-level {
    margin-left: auto;
    font-size: 1.1rem;
    color: #4b4b7a;
}
.hero-xp {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}
.hero-abilities {
    margin-bottom: 0.5rem;
}
.hero-card-empty {
    text-align: center;
    margin: 2rem 0;
}
/* Bonus table column font size adjustments */
.building-table td[data-label="Vyžaduje"],
.building-table td[data-label="Cena"],
.building-table td[data-label="Cena kouzla"],
.building-table td[data-label="Opakovatelné"] {
    font-size: 0.78em !important;
}

/* Prevent word wrapping in bonus table headers */
.building-table th {
    white-space: nowrap !important;
}
.gods-switcher.btn-group {
    gap: 0.7rem !important;
}
.gods-switcher .btn {
    border-radius: 0.7rem !important;
}
/* Jednotná velikost a styl názvu boha na kartě */
.god-card .god-header h3 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-align: center;
    width: 100%;
}
.branch-switcher.btn-group {
    gap: 0.7rem !important;
}
/* Větší tlačítka na přepínání větví u všech bohů */
.branch-switcher .btn,
.branch-switcher .branch-btn {
    font-size: 0.93rem !important;
    min-width: 90px !important;
    padding: 0.22rem 0.55rem !important;
    border-radius: 0.5rem !important;
}
/* Stylování pro Pyyrios card podle stylu Malgoth, ale oranžově */
.god-card.Pyyrios {
    background: linear-gradient(120deg, #fff7e6 0%, #ffb347 100%) !important;
    border: none;
}
.god-card.Pyyrios .god-header h3 {
    color: #ffb347 !important;
    text-align: center;
    width: 100%;
}
.god-card.Pyyrios .god-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.god-card.Pyyrios .branch-switcher {
    align-self: center;
    text-align: center;
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
}
.god-card.Pyyrios .branch-switcher .btn {
    border-color: #ffb347 !important;
    color: #ffb347 !important;
}
.god-card.Pyyrios .branch-switcher .btn.active,
.god-card.Pyyrios .branch-switcher .btn:active,
.god-card.Pyyrios .branch-switcher .btn:focus,
.god-card.Pyyrios .branch-switcher .btn:hover {
    background-color: #ffb347 !important;
    color: #fff !important;
    border-color: #ffb347 !important;
}
.god-card.Pyyrios .building-table {
    border:none;
    background: #fff7e6 !important;
    color: #ffb347 !important;
}
.god-card.Pyyrios .building-table th {
    background: #ffb347 !important;
    color: #222 !important;
}
.god-card.Pyyrios .building-table td {
    color: #ffb347 !important;
}
.god-card.Pyyrios .building-table .tier-separator > td {
    border-top: 2px solid #ffb347 !important;
}
/* Stylování pro Malgoth card podle stylu Vernadar/Nekrovar, ale světle zeleně */

/* Stylování pro Malgoth card podle stylu Vernadar/Nekrovar, ale zeleně */
.god-card.Malgoth {
    background: linear-gradient(120deg, #f0fff0 0%, lightgreen 100%) !important;
    border: none;
}
.god-card.Malgoth .god-header h3 {
    color: #a5f1a5 !important;
    text-align: center;
    width: 100%;
}
.god-card.Malgoth .god-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.god-card.Malgoth .branch-switcher {
    align-self: center;
    text-align: center;
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
}
.god-card.Malgoth .branch-switcher .btn {
    border-color: #a5f1a5  !important;
    color: #388e3c !important;
}
.god-card.Malgoth .branch-switcher .btn.active,
.god-card.Malgoth .branch-switcher .btn:active,
.god-card.Malgoth .branch-switcher .btn:focus,
.god-card.Malgoth .branch-switcher .btn:hover {
    background-color: #388e3c !important;
    color: #fff !important;
    border-color: #a5f1a5 !important;
}
.god-card.Malgoth .building-table {
    border: none;
    background: #f0fff0 !important;
    color: #1b5e20 !important;
}
.god-card.Malgoth .building-table th {
    background: #a5f1a5 !important;
    color: #fff !important;
}
.god-card.Malgoth .building-table td {
    color: #1b5e20 !important;
}
.god-card.Malgoth .building-table .tier-separator > td {
    border-top: 2px solid #a5f1a5 !important;
}
/* Stylování pro Nekrovar card podle stylu Vernadar, ale tmavě šedě */
.god-card.Nekrovar {
    background: linear-gradient(120deg, #f3f3f3 0%, #23272a 100%) !important;
    border: none;
}
.god-card.Nekrovar .god-header h3 {
    color: #23272a !important;
    text-align: center;
    width: 100%;
}
.god-card.Nekrovar .god-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.god-card.Nekrovar .branch-switcher {
    align-self: center;
    text-align: center;
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
}
.god-card.Nekrovar .branch-switcher .btn {
    border-color: #23272a !important;
    color: #23272a !important;
}
.god-card.Nekrovar .branch-switcher .btn.active,
.god-card.Nekrovar .branch-switcher .btn:active,
.god-card.Nekrovar .branch-switcher .btn:focus,
.god-card.Nekrovar .branch-switcher .btn:hover {
    background-color: #23272a !important;
    color: #fff !important;
    border-color: #23272a !important;
}
.god-card.Nekrovar .building-table {
    border: none;
    background: #f3f3f3 !important;
    color: #23272a !important;
}
.god-card.Nekrovar .building-table th {
    background: #23272a !important;
    color: #fff !important;
}
.god-card.Nekrovar .building-table td {
    color: #23272a !important;
}
.god-card.Nekrovar .building-table .tier-separator > td {
    border-top: 2px solid #23272a !important;
}
.god-card.Vernadar .god-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* Stylování pro Vernadar card podle stylu Luminari, ale zeleně */
.god-card.Vernadar {
    background: linear-gradient(120deg, #e6ffe6 0%, #388e3c 100%) !important;
    border: none;
}
.god-card.Vernadar .god-header h3 {
    color: #388e3c !important;
    text-align: center;
    width: 100%;
    /* bez stínování */
}
.god-card.Vernadar .branch-switcher {
    align-self: center;
    text-align: center;
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
}
.god-card.Vernadar .branch-switcher .btn {
    border-color: #388e3c !important;
    color: #388e3c !important;
}
.god-card.Vernadar .branch-switcher .btn.active,
.god-card.Vernadar .branch-switcher .btn:active,
.god-card.Vernadar .branch-switcher .btn:focus,
.god-card.Vernadar .branch-switcher .btn:hover {
    background-color: #388e3c !important;
    color: #fff !important;
    border-color: #388e3c !important;
}
.god-card.Vernadar .building-table {
    border: none;
    background: #e6ffe6 !important;
    color: #003d1a !important;
}
.god-card.Vernadar .building-table th {
    background: #388e3c !important;
    color: #fff !important;
}
.god-card.Vernadar .building-table td {
    color: #003d1a !important;
}
.god-card.Vernadar .building-table .tier-separator > td {
    border-top: 2px solid #388e3c !important;
}
/* Oprava: bonusové tabulky větví Gorma nesmí být nikdy display:none */

.god-card.Gorm {
    background: linear-gradient(120deg, #f8e6ff 0%, darkmagenta 100%) !important;
    border: none;
}
.god-card.Gorm .god-header h3 {
    color: darkmagenta !important;
    text-align: center !important;
}
.god-card.Gorm .building-table thead {
    background: darkmagenta !important;
    color: #fff !important;
}
/* Luminari color for text */
.Luminari { color: #ffe600 !important; }
/* ================= Kingdom God Guide - Consolidated Styles (from bohove.php) ================= */

/* Unified god card/table/button styles - only color and data differ */

/* =================== GOD CARD STYLES (deduplicated & unified) =================== */
.god-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    padding: 1.2rem 1.2rem 0.5rem 1.2rem;
    margin-bottom: 2.5rem;
    border: 1.5px solid #eee;
}
.god-card .god-header h3 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-align: center;
    width: 100%;
}
.god-card .building-table {
    border: 1.5px solid #eee;
    background: #fff;
}
.god-card .building-table th {
    background: #f7f7f7;
    color: inherit;
    border-bottom: 2px solid #eee;
    white-space: nowrap !important;
}
.god-card .building-table td {
    color: #222;
}
.god-card .building-table .tier-separator > td {
    border-top: 2px solid #eee !important;
}
.building-table tr, .building-table tbody tr, .building-table td, .building-table th {
    height: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box;
}

/* God color classes (unified, only for text color) */
.Criothar { color: blue !important; }
.Kaelra { color: #0099ff !important; }
.Luminari { color: #ffe600 !important; }
.Gorm { color: darkmagenta !important; }
.Vernadar { color: green !important; }
.Nekrovar { color: #23272a !important; }
.Malgoth { color: lightgreen !important; }
.Pyyrios { color: orange !important; }

/* Unified god button styles (deduplicated) */
.btn-god {
    border: 2px solid transparent !important;
    font-weight: 600;
    box-shadow: none;
    transition: background 0.15s, color 0.15s, border 0.15s;
}
.btn-god.Criothar { background: blue !important; color: #fff !important; border-color: blue !important; }
.btn-god.Kaelra { background: #0099ff !important; color: #fff !important; border-color: #0099ff !important; }
.btn-god.Luminari { background: #ffe600 !important; color: #222 !important; border-color: #ffe600 !important; }
.btn-god.Gorm { background: darkmagenta !important; color: #fff !important; border-color: darkmagenta !important; }
.btn-god.Vernadar { background: green !important; color: #fff !important; border-color: green !important; }
.btn-god.Nekrovar { background: #23272a !important; color: #fff !important; border-color: #23272a !important; }
.btn-god.Malgoth { background: lightgreen !important; color: #222 !important; border-color: lightgreen !important; }
.btn-god.Pyyrios { background: orange !important; color: #fff !important; border-color: orange !important; }

.btn-outline-god {
    background: #fff !important;
    font-weight: 600;
    box-shadow: none;
    border: 2px solid;
    transition: background 0.15s, color 0.15s, border 0.15s;
}
.btn-outline-god.Criothar { border-color: blue !important; color: blue !important; }
.btn-outline-god.Kaelra { border-color: #0099ff !important; color: #0099ff !important; }
.btn-outline-god.Luminari { border-color: #ffe600 !important; color: #ffe600 !important; }
.btn-outline-god.Gorm { border-color: darkmagenta !important; color: darkmagenta !important; }
.btn-outline-god.Vernadar { border-color: green !important; color: green !important; }
.btn-outline-god.Nekrovar { border-color: #23272a !important; color: #23272a !important; }
.btn-outline-god.Malgoth { border-color: lightgreen !important; color: lightgreen !important; }
.btn-outline-god.Pyyrios { border-color: orange !important; color: orange !important; }

/* Hover states for outline god buttons */
.btn-outline-god.Criothar:hover, .btn-outline-god.Criothar.active {
    background: blue !important; color: #fff !important; border-color: blue !important;
}
.btn-outline-god.Kaelra:hover, .btn-outline-god.Kaelra.active {
    background: #0099ff !important; color: #fff !important; border-color: #0099ff !important;
}
.btn-outline-god.Luminari:hover, .btn-outline-god.Luminari.active {
    background: #ffe600 !important; color: #222 !important; border-color: #ffe600 !important;
}
.btn-outline-god.Gorm:hover, .btn-outline-god.Gorm.active {
    background: darkmagenta !important; color: #fff !important; border-color: darkmagenta !important;
}
.btn-outline-god.Vernadar:hover, .btn-outline-god.Vernadar.active {
    background: green !important; color: #fff !important; border-color: green !important;
}
.btn-outline-god.Nekrovar:hover, .btn-outline-god.Nekrovar.active {
    background: #23272a !important; color: #fff !important; border-color: #23272a !important;
}
.btn-outline-god.Malgoth:hover, .btn-outline-god.Malgoth.active {
    background: lightgreen !important; color: #222 !important; border-color: lightgreen !important;
}
.btn-outline-god.Pyyrios:hover, .btn-outline-god.Pyyrios.active {
    background: orange !important; color: #fff !important; border-color: orange !important;
}

/* God-specific tier separator overrides (grouped at top) */
.god-card.Criothar .building-table .tier-separator > td { border-top: 2px solid #667eea !important; }
.god-card.Kaelra .building-table .tier-separator > td { border-top: 2px solid #0099ff !important; }
.god-card.Luminari .building-table .tier-separator > td { border-top: 2px solid #fbc02d !important; }
.god-card.Gorm .building-table .tier-separator > td { border-top: 2px solid #7c5c2b !important; }
.god-card.Vernadar .building-table .tier-separator > td { border-top: 2px solid #388e3c !important; }
.god-card.Nekrovar .building-table .tier-separator > td { border-top: 2px solid #212121 !important; }
.god-card.Malgoth .building-table .tier-separator > td { border-top: 2px solid #a5f1a5 !important; }
.god-card.Pyyrios .building-table .tier-separator > td { border-top: 2px solid #d84315 !important; }

.god-card .god-header h3 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-align: center;
    width: 100%;
}
.god-card .building-table {
    border: 1.5px solid #eee;
    background: #fff;
}
.god-card .building-table th {
    background: #f7f7f7;
    color: inherit;
    border-bottom: 2px solid #eee;
    white-space: nowrap !important;
}
.god-card .building-table td {
    color: #222;
}
.god-card .building-table .tier-separator > td {
    border-top: 2px solid #eee !important;
}
.building-table tr, .building-table tbody tr, .building-table td, .building-table th {
    height: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box;
}

/* God color classes (unified, only for text color) */
.Criothar { color: blue !important; }
.Kaelra { color: #0099ff !important; }
.Luminari { color: #ffe600 !important; }
.Gorm { color: darkmagenta !important; }
.Vernadar { color: green !important; }
.Nekrovar { color: #23272a !important; }
.Malgoth { color: lightgreen !important; }
.Pyyrios { color: orange !important; }

/* Unified god button styles (deduplicated) */
.btn-god {
    border: 2px solid transparent !important;
    font-weight: 600;
    box-shadow: none;
    transition: background 0.15s, color 0.15s, border 0.15s;
}
.btn-god.Criothar { background: blue !important; color: #fff !important; border-color: blue !important; }
.btn-god.Kaelra { background: #0099ff !important; color: #fff !important; border-color: #0099ff !important; }
.btn-god.Luminari { background: #ffe600 !important; color: #222 !important; border-color: #ffe600 !important; }
.btn-god.Gorm { background: darkmagenta !important; color: #fff !important; border-color: darkmagenta !important; }
.btn-god.Vernadar { background: green !important; color: #fff !important; border-color: green !important; }
.btn-god.Nekrovar { background: #23272a !important; color: #fff !important; border-color: #23272a !important; }
.btn-god.Malgoth { background: lightgreen !important; color: #222 !important; border-color: lightgreen !important; }
.btn-god.Pyyrios { background: orange !important; color: #fff !important; border-color: orange !important; }

.btn-outline-god {
    background: #fff !important;
    font-weight: 600;
    box-shadow: none;
    border: 2px solid;
    transition: background 0.15s, color 0.15s, border 0.15s;
}
.btn-outline-god.Criothar { border-color: blue !important; color: blue !important; }
.btn-outline-god.Kaelra { border-color: #0099ff !important; color: #0099ff !important; }
.btn-outline-god.Luminari { border-color: #ffe600 !important; color: #ffe600 !important; }
.btn-outline-god.Gorm { border-color: darkmagenta !important; color: darkmagenta !important; }
.btn-outline-god.Vernadar { border-color: green !important; color: green !important; }
.btn-outline-god.Nekrovar { border-color: #23272a !important; color: #23272a !important; }
.btn-outline-god.Malgoth { border-color: lightgreen !important; color: lightgreen !important; }
.btn-outline-god.Pyyrios { border-color: orange !important; color: orange !important; }

/* Hover states for outline god buttons */
.btn-outline-god.Criothar:hover, .btn-outline-god.Criothar.active {
    background: blue !important; color: #fff !important; border-color: blue !important;
}
.btn-outline-god.Kaelra:hover, .btn-outline-god.Kaelra.active {
    background: #0099ff !important; color: #fff !important; border-color: #0099ff !important;
}
.btn-outline-god.Luminari:hover, .btn-outline-god.Luminari.active {
    background: #ffe600 !important; color: #222 !important; border-color: #ffe600 !important;
}
.btn-outline-god.Gorm:hover, .btn-outline-god.Gorm.active {
    background: darkmagenta !important; color: #fff !important; border-color: darkmagenta !important;
}
.btn-outline-god.Vernadar:hover, .btn-outline-god.Vernadar.active {
    background: green !important; color: #fff !important; border-color: green !important;
}
.btn-outline-god.Nekrovar:hover, .btn-outline-god.Nekrovar.active {
    background: #23272a !important; color: #fff !important; border-color: #23272a !important;
}
.btn-outline-god.Malgoth:hover, .btn-outline-god.Malgoth.active {
    background: lightgreen !important; color: #222 !important; border-color: lightgreen !important;
}
.btn-outline-god.Pyyrios:hover, .btn-outline-god.Pyyrios.active {
    background: orange !important; color: #fff !important; border-color: orange !important;
}

/* God-specific tier separator overrides (grouped at top) */
.god-card.Criothar .building-table .tier-separator > td { border-top: 2px solid #667eea !important; }
.god-card.Kaelra .building-table .tier-separator > td { border-top: 2px solid #0099ff !important; }
.god-card.Luminari .building-table .tier-separator > td { border-top: 2px solid #fbc02d !important; }
.god-card.Gorm .building-table .tier-separator > td { border-top: 2px solid darkmagenta !important; }
.god-card.Vernadar .building-table .tier-separator > td { border-top: 2px solid #388e3c !important; }
.god-card.Nekrovar .building-table .tier-separator > td { border-top: 2px solid #212121 !important; }
.god-card.Malgoth .building-table .tier-separator > td { border-top: 2px solid #a5f1a5 !important; }
.god-card.Pyyrios .building-table .tier-separator > td { border-top: 2px solid #d84315 !important; }

/* Responsive adjustments for god cards and tables */
@media (max-width: 900px) {
    .container-main {
        max-width: 100%;
        padding: 0 0.2rem;
    }
    .god-card {
        padding: 0.5rem 0.3rem 0.3rem 0.3rem !important;
        margin-bottom: 1.2rem !important;
    }
    .god-card.Malgoth {
        background: linear-gradient(120deg, #f0fff0 0%, #a5f1a5 100%) !important;
        border: 1.5px solid #a5f1a5 !important;
    }
    .god-card.Malgoth .god-header h3 {
        color: #a5f1a5 !important;
        text-align: center;
        width: 100%;
    }
    .god-card.Malgoth .building-table {
        border: none;
        background: #f0fff0 !important;
        color: #a5f1a5 !important;
    }
    .god-card.Malgoth .building-table th {
        background: #a5f1a5 !important;
        color: #222 !important;
    }
    .god-card.Malgoth .building-table td {
        color: #a5f1a5 !important;
    }
    .god-card.Malgoth .building-table .tier-separator > td {
        border-top: 2px solid #a5f1a5 !important;
    }
    .building-table th {
        font-size: 0.95em !important;
    }
    .building-table td {
        font-size: 0.78em !important;
    }
    .building-table td[data-label="Podmínky"],
    .building-table td[data-label="Vlastnosti"],
    .building-table th[data-label="Podmínky"],
    .building-table th[data-label="Vlastnosti"] {
        font-size: 0.70em !important;
    }
    .building-table td[data-label="Jednotka"],
    .building-table td[data-label="Cena"],
    .building-table th[data-label="Jednotka"],
    .building-table th[data-label="Cena"] {
        white-space: nowrap !important;
    }
}
@media (max-width: 600px) {
    .container-main {
        padding: 0 0.05rem !important;
    }
    .god-card {
        padding: 0.2rem 0.05rem 0.1rem 0.05rem !important;
    }
    .building-table,
    .building-table th,
    .building-table td {
        font-size: 0.70rem !important;
        padding: 0.06rem 0.04rem !important;
    }
    .building-table th {
        font-size: 0.85em !important;
    }
    .building-table td {
        font-size: 0.68em !important;
    }
    /* Centrovat název budovy, jednotku a tier číslo v tabulkách bohů na mobilu */
    .building-table th[data-label="Budova"],
    .building-table td[data-label="Budova"],
    .building-table th[data-label="Jednotka"],
    .building-table td[data-label="Jednotka"],
    .building-table th[data-label="Pořadí"],
    .building-table td[data-label="Pořadí"] {
        text-align: center !important;
        justify-content: center;
        align-items: center;
        vertical-align: middle !important;
    }
    /* Pokud je v buňce tooltip, zarovnej i jeho obsah na střed */
    .building-table td[data-label="Budova"] .i-tooltip,
    .building-table td[data-label="Jednotka"] .i-tooltip {
        margin-left: 0.2em;
        vertical-align: middle;
        display: inline-block;
    }

    /* Rozdělení obsahu v buňkách na mobilu */
    .building-table td[data-label="Pořadí"] {
        display: block;
        font-weight: bold;
        font-size: 1em;
        margin-bottom: 0.15em;
    }
    .building-table td[data-label="Budova"] {
        display: block;
        font-size: 0.95em;
        margin-bottom: 0.1em;
    }
    .building-table td[data-label="Jednotka"] {
        display: block;
        font-size: 0.9em;
        margin-top: 0.1em;
    }
    /* Zajisti, že tooltip je vždy viditelný */
    .i-tooltip {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
/* Zajisti, že tabulky jsou vždy čitelné a scrollovatelné na mobilu */
.building-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.building-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.god-card .building-table th,
.god-card .building-table td {
    white-space: normal !important;
    word-break: break-word !important;
}

        .btn-outline-Gorm {
                color: darkmagenta;
                border-color: darkmagenta;
        }
        .btn-outline-Gorm.active, .btn-outline-Gorm:active, .btn-outline-Gorm:focus, .btn-outline-Gorm:hover {
                background-color: darkmagenta;
                color: #fff;
                border-color: darkmagenta;
        }

/* Stylování pro Gorm card podle stylu Vernadar */
.god-card.Gorm {
    background: linear-gradient(120deg, #e5e4d7 0%, #cbbfa3 100%);
    box-shadow: 0 2px 16px 0 rgba(120,80,40,0.10);
    padding: 1.2rem 1.2rem 0.5rem 1.2rem;
    margin-bottom: 2.5rem;
    border: none;
}
/* .god-card.Gorm .god-header h3 sjednoceno globálně */
.god-card.Gorm .branch-switcher {
    margin-top: 0.2rem;
}
.god-card.Gorm .building-table-wrapper {
    margin-bottom: 1.2rem;
}
.god-card.Gorm .building-table,
.god-card.Gorm .building-table th,
.god-card.Gorm .building-table td {
    font-size: 0.90rem !important;
    padding: 0.18rem 0.35rem !important;
    line-height: 1.15 !important;
}
.god-card.Gorm .building-table th {
    font-weight: 700;
    background: #e5e4d7;
    color: #7c5c2b;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 1em !important;
    border-bottom: 2px solid #b2d8b2;
    letter-spacing: 0.03em;
}
.god-card.Gorm .building-table td {
    vertical-align: middle;
}
.god-card.Gorm .building-table td,
.god-card.Gorm .building-table th {
    text-align: center !important;
}
.god-card.Gorm .building-table td[data-label="Podmínky"],
.god-card.Gorm .building-table td[data-label="Vlastnosti"],
.god-card.Gorm .building-table th[data-label="Podmínky"],
.god-card.Gorm .building-table th[data-label="Vlastnosti"] {
    font-size: 0.78em !important;
    text-align: center !important;
    vertical-align: middle !important;
}
.god-card.Gorm .building-table td[data-label="Jednotka"],
.god-card.Gorm .building-table td[data-label="Cena"],
.god-card.Gorm .building-table th[data-label="Jednotka"],
.god-card.Gorm .building-table th[data-label="Cena"] {
    white-space: nowrap !important;
}
.god-card.Gorm .building-table td[data-label="Cena"] {
    font-size: 0.78em !important;
}
.god-card.Gorm .building-table th[data-label="Pořadí"],
.god-card.Gorm .building-table td[data-label="Pořadí"] {
    text-align: center !important;
}
.god-card.Gorm .building-table tr {
    min-height: 0;
}
.god-card.Gorm .building-table .upgrade-info {
    font-size: 0.82em;
    margin-top: 0.08em;
    display: block;
}
@media (max-width: 900px) {
    .god-card.Gorm {
        max-width: 100%;
        padding: 0 0.2rem;
    }
    .god-card.Gorm .god-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }
    .god-card.Gorm .god-header h3 {
        font-size: 2.1rem;
        font-weight: 700;
        color: #7c5c2b;
        margin-bottom: 0;
    }
    .god-card.Gorm .branch-switcher {
        margin-top: 0;
    }
    .god-card.Gorm .building-table td {
        font-size: 0.80rem !important;
        padding: 0.12rem 0.15rem !important;
    }
}
/* ================= End Kingdom God Guide Styles ================= */
@import 'tier-separator.css';

/* Tooltip info icon for Vlastnosti column */
.i-tooltip {
    cursor: pointer;
    color: #444;
    font-size: 1.1em;
    margin-left: 0.2em;
    vertical-align: middle;
}
.i-tooltip:hover {
    color: #007bff;
}
/* Kategorie eventů - barevné pozadí */

/* Barevné pozadí pro jednotlivé tlačítka eventů */
.event-btn.basic { background: #f8fafc; color: #333; }
.event-btn.event { background: #e0f7fa; color: #00796b; }
.event-btn.dwarf { background: #fffde7; color: #bfa14a; }
.event-btn.demon { background: #ffebee; color: #c62828; }
.event-btn.temple { background: #e8f5e9; color: #388e3c; }
.event-btn.conquest { background: #fff3e0; color: #f57c00; }
.event-btn.plunder { background: #f3e5f5; color: #6a1b9a; }
.event-btn.war { background: #e3f2fd; color: #1976d2; }
.event-btn.eternan { background: #ede7f6; color: #5e35b1; }

/* Zvýraznění při hoveru */
.event-btn:hover { filter: brightness(0.95) saturate(1.2); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.event-category-title i.fa-compass { color: #6c757d; }
.event-category-title i.fa-water { color: #00bcd4; }
.event-category-title i.fa-chess-rook { color: #bfa14a; }
.event-category-title i.fa-fire { color: #e53935; }
.event-category-title i.fa-skull-crossbones { color: #6d4c41; }
.event-category-title i.fa-place-of-worship { color: #43a047; }
/* ==========================================================
   Kingdom Guide - Consolidated Stylesheet
   All styles for the Kingdom game documentation guide
   ========================================================== */

/* ==========================================================
   1. NAVBAR & NAVIGATION
   ========================================================== */

.navbar {
    margin-bottom: 0;
}

.nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.3s;
    border-radius: 5px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.navbar-brand {
    font-size: 1.4rem;
    transition: all 0.3s;
    font-weight: 700;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Dropdown menu styling */
.dropdown-menu {
    background: rgba(102, 126, 234, 0.95);
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 5px 0;
}

.dropdown-item {
    color: white;
    padding: 10px 20px;
    transition: all 0.3s;
    border-radius: 5px;
    margin: 0;
    display: block;
    width: 100%;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateX(5px);
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(255,255,255,0.3) !important;
    color: white !important;
}

/* Hover dropdown styling */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-toggle::after {
    margin-left: 6px;
}

.dropdown-item-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: white;
}

/* ==========================================================
   2. PAGE HEADER & LAYOUT
   ========================================================== */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 12px 12px;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto;
    font-weight: 300;
}

.container-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   2b. GUIDE NAVBAR
   ========================================================== */

.guide-navbar {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4f46e5 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    padding: 0.55rem 1rem;
}

.guide-navbar__brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e0e7ff !important;
    transition: color 0.2s;
}
.guide-navbar__brand:hover { color: #fff !important; }
.guide-navbar__brand i { color: #a5b4fc; }

.guide-navbar__link {
    font-weight: 600;
    color: rgba(224,231,255,0.85) !important;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    padding: 6px 12px !important;
}
.guide-navbar__link:hover,
.guide-navbar__link:focus {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

.guide-navbar__dropdown {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 0.5rem;
    min-width: 200px;
    background: #fff;
}
.guide-navbar__dropdown .dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    transition: background 0.15s;
    color: #212529 !important;
}
.guide-navbar__dropdown .dropdown-item:hover {
    background: #f0f0ff;
    color: #3730a3 !important;
}
.guide-navbar__dropdown .dropdown-divider {
    margin: 0.35rem 0.5rem;
}
.text-purple { color: #7c3aed !important; }
.text-pink   { color: #db2777 !important; }

.guide-navbar__pill {
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    transition: opacity 0.2s, transform 0.15s !important;
}
.guide-navbar__pill:hover { opacity: 0.9; transform: translateY(-1px); }

.guide-navbar__pill--sim {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25);
}
.guide-navbar__pill--sim:hover { background: rgba(255,255,255,0.22) !important; }

.guide-navbar__pill--play {
    background: #16a34a;
    color: #fff !important;
    border: 1px solid #15803d;
}
.guide-navbar__pill--play:hover { background: #15803d !important; }

/* ==========================================================
   3. HERO SECTION (index.php)
   ========================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================
   4. GUIDE CARDS (index.php)
   ========================================================== */

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px 50px;

    padding: 2em;
}

.guide-card {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #667eea;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102,126,234,0.25);
    border-top-color: #764ba2;
}

.guide-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover .guide-card-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* === Guide card color variants === */
.guide-card--gold   { border-top-color: #d97706; }
.guide-card--gold   .guide-card-icon { background: linear-gradient(135deg, #fbbf24, #d97706); }
.guide-card--gold:hover   { box-shadow: 0 12px 30px rgba(217,119,6,0.22); border-top-color: #d97706; }

.guide-card--red    { border-top-color: #dc2626; }
.guide-card--red    .guide-card-icon { background: linear-gradient(135deg, #f87171, #dc2626); }
.guide-card--red:hover    { box-shadow: 0 12px 30px rgba(220,38,38,0.22); border-top-color: #dc2626; }

.guide-card--stone  { border-top-color: #78716c; }
.guide-card--stone  .guide-card-icon { background: linear-gradient(135deg, #a8a29e, #57534e); }
.guide-card--stone:hover  { box-shadow: 0 12px 30px rgba(87,83,78,0.22); border-top-color: #57534e; }

.guide-card--violet { border-top-color: #7c3aed; }
.guide-card--violet .guide-card-icon { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.guide-card--violet:hover { box-shadow: 0 12px 30px rgba(124,58,237,0.22); border-top-color: #7c3aed; }

.guide-card--teal   { border-top-color: #0d9488; }
.guide-card--teal   .guide-card-icon { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.guide-card--teal:hover   { box-shadow: 0 12px 30px rgba(13,148,136,0.22); border-top-color: #0d9488; }

.guide-card--green  { border-top-color: #16a34a; }
.guide-card--green  .guide-card-icon { background: linear-gradient(135deg, #4ade80, #16a34a); }
.guide-card--green:hover  { box-shadow: 0 12px 30px rgba(22,163,74,0.22); border-top-color: #16a34a; }

.guide-card--blue   { border-top-color: #2563eb; }
.guide-card--blue   .guide-card-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.guide-card--blue:hover   { box-shadow: 0 12px 30px rgba(37,99,235,0.22); border-top-color: #2563eb; }

.guide-card--crimson { border-top-color: #b91c1c; }
.guide-card--crimson .guide-card-icon { background: linear-gradient(135deg, #fb923c, #b91c1c); }
.guide-card--crimson:hover { box-shadow: 0 12px 30px rgba(185,28,28,0.22); border-top-color: #b91c1c; }

.guide-card--rose   { border-top-color: #db2777; }
.guide-card--rose   .guide-card-icon { background: linear-gradient(135deg, #f472b6, #db2777); }
.guide-card--rose:hover   { box-shadow: 0 12px 30px rgba(219,39,119,0.22); border-top-color: #db2777; }

/* Simulátor – special full-gradient card */
.guide-card--simulator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-top: 4px solid rgba(255,255,255,0.35);
}
.guide-card--simulator h3 { color: white; }
.guide-card--simulator p  { color: rgba(255,255,255,0.88); }
.guide-card--simulator .guide-card-icon { background: rgba(255,255,255,0.2); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.guide-card--simulator .guide-card-footer { color: rgba(255,255,255,0.8); border-top-color: rgba(255,255,255,0.3); }
.guide-card--simulator:hover { box-shadow: 0 12px 30px rgba(102,126,234,0.45); border-top-color: rgba(255,255,255,0.5); }

/* Galerie – special rose-gold gradient card */
.guide-card--gallery {
    background: linear-gradient(135deg, #f43f5e 0%, #db2777 50%, #9333ea 100%);
    color: white;
    border: none;
    border-top: 4px solid rgba(255,255,255,0.35);
}
.guide-card--gallery h3 { color: white; }
.guide-card--gallery p  { color: rgba(255,255,255,0.88); }
.guide-card--gallery .guide-card-icon { background: rgba(255,255,255,0.2); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.guide-card--gallery:hover { box-shadow: 0 12px 30px rgba(219,39,119,0.45); border-top-color: rgba(255,255,255,0.5); }

.guide-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 0.02em;
}


/* Unified god card/table/button styles for all gods - only color and data differ */
.god-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    padding: 1.2rem 1.2rem 0.5rem 1.2rem;
    margin-bottom: 2.5rem;
    border: 1.5px solid #eee;
}
.god-card .god-header h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0;
}
.god-card .building-table th {
    background: transparent;
    color: inherit;
    border-bottom: 2px solid #eee;
}
.god-card .building-table {
    border: none;
    background: #fff;
}
.god-card .building-table td {
    color: #222;
}
/* God color classes */
.Criothar { color: blue !important; }
.Kaelra { color: lightblue !important; }
.Luminari { color: lightyellow !important; }
.Gorm { color: darkmagenta !important; }
.Vernadar { color: green !important; }
.Nekrovar { color: gray !important;}
.Malgoth { color: lightgreen !important; }
.Pyyrios { color: orange !important; }
/* Button color classes */
.btn-Criothar { background: blue !important; color: #fff !important; }
.btn-Kaelra { background: #0099ff !important; color: #fff !important; }
.btn-Luminari { background: #ffe600 !important; color: #222 !important; }
.btn-Gorm { background: darkmagenta !important; color: #fff !important; }
.btn-Vernadar { background: green !important; color: #fff !important; }
.btn-Nekrovar { background: gray !important; color: #fff !important; }
.btn-Malgoth { background: lightgreen !important; color: #222 !important; }
.btn-Pyyrios { background: orange !important; color: #fff !important; }


/* ==========================================================
   6. SECTION TITLES & CONTENT
   ========================================================== */

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-top: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.subsection-title {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.3rem;
    font-weight: 500;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.section-header {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    color: #667eea;
    font-size: 1.8rem;
}

.subsection-header {
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
}

.section-subsection {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* ==========================================================
   7. TABLE OF CONTENTS
   ========================================================== */

.toc-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.toc-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.toc-card h2 i {
    color: #667eea;
    font-size: 1.3rem;
}

.toc-card ul {
    margin-bottom: 0;
    list-style: disc;
    padding-left: 24px;
}

.toc-card li {
    margin-bottom: 6px;
    padding-left: 0;
    color: #555;
}

.toc-card > ul > li::marker {
    color: #667eea;
    font-weight: 600;
}

.toc-card a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.toc-card a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.toc-card ul ul {
    margin-top: 10px;
    margin-left: 20px;
}

.toc-card ul ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.toc-card ul ul li::before {
    content: "└─ ";
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

.toc-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.toc-title i {
    color: #667eea;
    font-size: 1.3rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc-list li {
    margin-bottom: 10px;
    padding-left: 0;
}

.toc-list a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.toc-list a:hover {
    color: #764ba2;
    text-decoration: underline;
    padding-left: 5px;
}

/* ==========================================================
   8. INTRO & INFO BOXES
   ========================================================== */

.intro-text {
    background: #ded74747;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ded647;
    margin-bottom: 30px;
}

.intro-text p {
    margin-bottom: 0;
    color: #333;
}

.intro-text a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.intro-text a:hover {
    text-decoration: underline;
    color: #764ba2;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-box h5 {
    color: #667eea;
    margin-bottom: 12px;
}

.warning-box {
    background: #f8f9fa;
    border-left: 4px solid #f57c00;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-box strong {
    color: #f57c00;
}

/* ==========================================================
   9. ALERTS
   ========================================================== */

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    color: #856404;
}

.alert-warning i {
    margin-right: 8px;
    color: #ff6b6b;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    color: #0c5460;
}

.alert-info i {
    margin-right: 8px;
    color: #17a2b8;
}

.info-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ff6b6b;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    color: #856404;
}

.info-alert i {
    margin-right: 8px;
    color: #ff6b6b;
}

.danger-alert {
    background: #fff5f5;
    border: 1px solid #ffebee;
    border-left: 4px solid #dc3545;
    padding: 15px;
    border-radius: 6px;
    color: #721c24;
    margin: 15px 0;
}

.danger-alert i {
    margin-right: 8px;
    color: #dc3545;
}

/* ==========================================================
   10. CARDS
   ========================================================== */

.content-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.content-card:hover {
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
    transform: translateY(-2px);
}

.content-card h3,
.content-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-card h3 {
    font-size: 1.2rem;
}

.content-card p {
    color: #555;
    margin-bottom: 10px;
}

.content-card ul {
    color: #555;
    margin-bottom: 0;
}

.content-card ul li {
    margin-bottom: 8px;
}

.card {
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* Enemy and conquest card styling */
.enemy-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.enemy-card:hover {
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
    transform: translateY(-2px);
}

/* ==========================================================
   11. TABLES - BASE STYLES
   ========================================================== */

.table,
.building-table,
.event-table,
.reputation-table,
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table thead,
.building-table thead,
.event-table thead,
.reputation-table thead,
.price-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table th,
.building-table th,
.event-table th,
.reputation-table th,
.price-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: none;
    white-space: nowrap;
}

.table td,
.building-table td,
.event-table td,
.reputation-table td,
.price-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #555;
    vertical-align: middle;
}

.table tbody tr:hover,
.building-table tbody tr:hover,
.event-table tbody tr:hover,
.reputation-table tbody tr:hover,
.price-table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child td,
.building-table tbody tr:last-child td,
.event-table tbody tr:last-child td,
.reputation-table tbody tr:last-child td,
.price-table tbody tr:last-child td {
    border-bottom: none;
}

.table-header {
    background-color: #667eea;
    color: white;
    font-weight: 600;
}

.table-wrapper,
.building-table-wrapper {
    background: white;
    border-radius: 8px;

    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}

.table-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

/* ==========================================================
   12. BADGES
   ========================================================== */

.level-badge,
.tier-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 60px;
}

.god-badge {
    display: inline-block;
    background: #764ba2;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 5px;
}

.reward-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
}

.reward-badge i {
    margin-right: 6px;
}

.variant-badge {
    display: inline-block;
    background: #e7f3ff;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.inactive-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #999;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.fee-badge,
.time-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

/* ==========================================================
   13. UNIT TOOLTIPS (bohove.php)
   ========================================================== */

.unit-name-tooltip {
    color: #667eea;
    font-weight: 600;
    cursor: help;
    border-bottom: 1px dashed #667eea;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.unit-name-tooltip:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.tooltip-inner {
    max-width: 350px;
    text-align: left;
    padding: 12px;
}

.unit-tooltip-content {
    font-size: 0.9rem;
}

.unit-tooltip-content strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.unit-tooltip-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 8px;
}

.unit-tooltip-stat {
    background: rgba(255,255,255,0.1);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* ==========================================================
   14. GOD CARDS (bohove.php)
   ========================================================== */

.god-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
}

.god-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.god-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.god-content {
    margin-top: 20px;
    display: block;
}

/* God-specific colors */
.god-card.Criothar {
    border-left-color: #4169E1;
}

.god-card.Criothar .building-table thead {
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
}

.god-card.Kaelra {
    border-left-color: #87CEEB;
}

.god-card.Kaelra .building-table thead {
    color: #333;
}

.god-card.Luminari {
    border-left-color: #FFD700;
}

.god-card.Luminari .building-table thead {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
}

.god-card.Gorm {
    border-left-color: #8B008B;
}

.god-card.Gorm .building-table thead {
    background: linear-gradient(135deg, #8B008B 0%, #9932CC 100%);
}

.god-card.Vernadar {
    border-left-color: #228B22;
}

.god-card.Vernadar .building-table thead {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
}

.god-card.Nekrovar {
    border-left-color: #808080;
}

.god-card.Nekrovar .building-table thead {
    background: linear-gradient(135deg, #808080 0%, #A9A9A9 100%);
}

.god-card.Malgoth {
    border-left-color: #90EE90;
}

.god-card.Malgoth .building-table thead {
    background: linear-gradient(135deg, #90EE90 0%, #98FB98 100%);
    color: #333;
}

.god-card.Pyyrios {
    border-left-color: #FF8C00;
}

.god-card.Pyyrios .building-table thead {
    background: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
}

/* God color classes for jednotky table rows */
.Criothar {
    background-color: rgba(0, 0, 255, 0.02) !important;
    border-left: 3px solid #4169E1;
}

.Kaelra {
    background-color: rgba(173, 216, 230, 0.02) !important;
    border-left: 3px solid #87CEEB;
}

.Luminari {
    background-color: rgba(255, 255, 0, 0.02) !important;
    border-left: 3px solid #FFD700;
}

.Gorm {
    background-color: rgba(139, 0, 139, 0.02) !important;
    border-left: 3px solid #8B008B;
}

.Vernadar {
    background-color: rgba(0, 128, 0, 0.02) !important;
    border-left: 3px solid #228B22;
}

.Nekrovar {
    background-color: rgba(128, 128, 128, 0.02) !important;
    border-left: 3px solid #808080;
}

.Malgoth {
    background-color: rgba(144, 238, 144, 0.02) !important;
    border-left: 3px solid #90EE90;
}

.Pyyrios {
    background-color: rgba(255, 140, 0, 0.02) !important;
    border-left: 3px solid #FF8C00;
}

/* ==========================================================
   15. BUILDING CARDS & GRIDS (stavby.php)
   ========================================================== */

.building-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.building-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.building-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
    border-color: #667eea;
}

.building-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.building-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
}

.building-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.building-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.building-effect {
    background: #f8f9fa;
    padding: 10px;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

.building-level {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.buildings-section {
    margin-bottom: 40px;
}

/* Upgrade info pod názvem budovy */
.upgrade-info {
    display: block;
    font-size: 0.8rem;
    color: #888;
    font-weight: normal;
    margin-top: 3px;
}

.upgrade-info i {
    color: #667eea;
}

/* ==========================================================
   16. EVENT CARDS (pruzkumy.php)
   ========================================================== */

.event-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
    transform: translateY(-2px);
}

.event-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.3rem;
}

.event-info {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.event-info-item {
    flex: 1;
}

.event-info-label {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.event-info-content {
    color: #333;
    font-size: 0.95rem;
}

.reward-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fa 100%);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.reward-section strong {
    color: #667eea;
}

.section-intro {
    color: #555;
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ==========================================================
   17. MERCHANT CARDS (trziste.php)
   ========================================================== */

.merchant-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.merchant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
    border-color: #667eea;
}

.merchant-title {
    color: #333;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.item-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.item-list li {
    margin-bottom: 8px;
    color: #555;
}

.highlight-text {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #667eea;
}

.item-name {
    font-weight: 600;
    color: #333;
}

/* ==========================================================
   18. WAR & FACTION STYLES (valka.php)
   ========================================================== */

.war-intro {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    color: #333;
}

.war-intro strong {
    color: #667eea;
}

.faction-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.faction-card:hover {
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
    border-color: #667eea;
}

.faction-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.faction-title i {
    font-size: 1.8rem;
}

/* Reputation table */
.reputation-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.reputation-table tr:last-child td {
    border-bottom: none;
}

.reputation-value {
    font-weight: 600;
    font-family: monospace;
}

.reputation-neutral {
    color: #6c757d;
}

.reputation-positive {
    color: #28a745;
}

.reputation-negative {
    color: #dc3545;
}

/* Raid table */
.raid-table .table {
    margin-bottom: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.raid-table .table th {
    padding: 15px;
    white-space: normal;
}

.raid-table .table td {
    padding: 15px;
    vertical-align: top;
}

.raid-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.reward-text {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.artifact-text {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 8px;
}

.mysterious-text {
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

/* Plenění Cards - Opaque Frame */
.opaque-frame {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #6c757d;
}

/* Posilující plenění - Blue */
.pleneni-2 {
    border-left-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.pleneni-text-2 {
    color: #667eea;
    margin-bottom: 10px;
}

/* Konstantní plenění - Green */
.pleneni-1 {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.pleneni-text-1 {
    color: #28a745;
    margin-bottom: 10px;
}

/* Bojiště - Red */
.pleneni-3 {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.pleneni-text-3 {
    color: #dc3545;
    margin-bottom: 10px;
}

/* Raid Sublocations */
.raid-sublocation {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid #6c757d;
}

.raid-sublocation-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.raid-sublocation.raid-challenge {
    background: rgba(220, 53, 69, 0.05);
    border-left-color: #dc3545;
}

.raid-sublocation.raid-challenge .raid-sublocation-title {
    color: #dc3545;
}

/* ==========================================================
   19. LISTS
   ========================================================== */

.unit-list,
.rewards-list,
.threats-list,
.benefits-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.unit-list li,
.rewards-list li,
.threats-list li,
.benefits-list li {
    padding: 6px 0 6px 24px;
    color: #555;
    position: relative;
    margin-bottom: 4px;
}

.unit-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.rewards-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.threats-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-size: 1rem;
}

.benefits-list li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-size: 1.2rem;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.list-unstyled li {
    margin-bottom: 10px;
    padding-left: 0;
}

.list-unstyled a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.list-unstyled a:hover {
    color: #764ba2;
    text-decoration: underline;
    padding-left: 5px;
}

.list-group-item {
    border-color: #dee2e6;
}

.list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ==========================================================
   20. JEDNOTKY (Units) STYLES
   ========================================================== */

.unit-image {
    max-width: 50px;
    max-height: 50px;
    border-radius: 4px;
}

.price-cell {
    font-size: 0.9rem;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.price-item:last-child {
    margin-bottom: 0;
}

.price-item i {
    font-size: 0.9rem;
}

.price-rune {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 2px;
    vertical-align: middle;
}

/* ==========================================================
   21. RUNE COMBINATIONS (stavby.php)
   ========================================================== */

.rune-combo {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rune-combo img {
    vertical-align: middle;
}

.rune-slot.empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #adb5bd;
    font-size: 14px;
    font-weight: bold;
}

.rune-combinations details[open] summary {
    margin-bottom: 15px;
}

.rune-combinations .table td {
    padding: 4px 8px;
    vertical-align: middle;
}

.rune-combinations .table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ==========================================================
   22. UTILITY CLASSES
   ========================================================== */

.text-muted {
    color: #999;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 15px;
}

.lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.fs-5 {
    font-size: 1rem;
}

.text-center {
    text-align: center;
}

.text-dark {
    color: #333 !important;
}

.fst-italic {
    font-style: italic;
}

/* Grid system supplement */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.col-12,
.col-md-4,
.col-md-6,
.col-md-8 {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.col-12 {
    width: 100%;
}

.col-md-4 {
    width: 33.333%;
}

.col-md-6 {
    width: 50%;
}

.col-md-8 {
    width: 66.666%;
}

/* ==========================================================
   23. MOBILE RESPONSIVE - TABLES
   ========================================================== */

@media (max-width: 991px) {
    .table-responsive-wrapper,
    .building-table-wrapper {
        overflow-x: visible;
    }
    
    .table,
    .table.table-hover,
    .table.table-bordered,
    .building-table,
    .event-table,
    .reputation-table {
        display: block;
    }
    
    .table thead,
    .building-table thead,
    .event-table thead,
    .reputation-table thead {
        display: none;
    }
    
    .table tbody,
    .building-table tbody,
    .event-table tbody,
    .reputation-table tbody {
        display: block;
    }
    
    .table tbody tr,
    .building-table tbody tr,
    .event-table tbody tr,
    .reputation-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        overflow: hidden;
    }
    
    .table tbody tr:hover,
    .building-table tbody tr:hover,
    .event-table tbody tr:hover,
    .reputation-table tbody tr:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(102,126,234,0.2);
    }
    
    .table td,
    .building-table td,
    .event-table td,
    .reputation-table td {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        min-height: 40px;
    }
    
    .table td:last-child,
    .building-table td:last-child,
    .event-table td:last-child,
    .reputation-table td:last-child {
        border-bottom: none;
    }
    
    .table td:empty,
    .building-table td:empty:not(:first-child),
    .event-table td:empty,
    .reputation-table td:empty {
        display: none;
    }
    
    .table td::before,
    .building-table td::before,
    .event-table td::before,
    .reputation-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #667eea;
        min-width: 110px;
        margin-right: 15px;
        flex-shrink: 0;
        font-size: 0.85rem;
    }
    
    /* First cell as card header */
    .table td:first-child,
    .building-table td:first-child,
    .event-table td:first-child,
    .reputation-table td:first-child {
        font-weight: 600;
        font-size: 1.05rem;
        color: #333;
        background: linear-gradient(135deg, rgba(102,126,234,0.12) 0%, rgba(118,75,162,0.08) 100%);
        padding: 12px 15px;
        border-bottom: 2px solid rgba(102,126,234,0.2);
    }
    
    .table td:first-child::before,
    .building-table td:first-child::before,
    .event-table td:first-child::before,
    .reputation-table td:first-child::before {
        display: none;
    }
    
    /* Vlastnosti na celou šířku */
    .building-table td[data-label="Vlastnosti"],
    .building-table td[data-label="Efekt"] {
        flex-direction: column;
        background: #f8f9fa;
    }
    
    .building-table td[data-label="Vlastnosti"]::before,
    .building-table td[data-label="Efekt"]::before {
        margin-bottom: 8px;
        color: #764ba2;
    }
    
    /* Zvýraznění názvu budovy */
    .building-table td[data-label="Budova"] {
        font-weight: 600;
        font-size: 1.1rem;
        color: #333;
        background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
        padding: 15px;
        border-bottom: 2px solid rgba(102,126,234,0.3);
        order: -1;
    }
    
    .building-table td[data-label="Budova"]::before {
        display: none;
    }
    
    /* Pořadí jako badge v rohu */
    .building-table td[data-label="Pořadí"] {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 0;
        border: none;
        min-height: auto;
        background: transparent !important;
    }
    
    .building-table td[data-label="Pořadí"]::before {
        display: none;
    }
    
    .building-table td[data-label="Pořadí"] .tier-badge {
        box-shadow: 0 2px 6px rgba(102,126,234,0.4);
    }
    
    .building-table tbody tr {
        position: relative;
    }
    
    /* Jednotka se zvýrazněním */
    .building-table td[data-label="Jednotka"] {
        background: rgba(102,126,234,0.05);
    }
    
    .building-table td[data-label="Jednotka"]::before {
        color: #764ba2;
    }
    
    /* Cena styling */
    .building-table td[data-label="Cena"],
    .building-table td[data-label="Cena kouzla"] {
        background: rgba(255,193,7,0.08);
    }
    
    /* Podmínky styling */
    .building-table td[data-label="Podmínky"],
    .building-table td[data-label="Vyžaduje"] {
        background: rgba(156,39,176,0.05);
    }
    
    .god-card {
        padding: 15px;
    }

    .god-header h3 {
        font-size: 1.15rem;
    }
    
    .building-table-wrapper h5 {
        font-size: 1.05rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid #eee;
    }
    
    /* Grid columns */
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        width: 100%;
    }
}

/* ==========================================================
   24. MOBILE RESPONSIVE - SMALL SCREENS
   ========================================================== */

@media (max-width: 768px) {
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        width: 100%;
    }

    /* Improved god card layout for mobile */
    .god-card {
        margin-bottom: 1.5rem;
        border-radius: 1rem;
        overflow: hidden;
    }

    .god-card .god-header {
        padding: 1rem;
    }

    .god-card .god-header h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    /* Better button group spacing */
    .gods-switcher {
        margin-bottom: 1rem;
        gap: 0.5rem !important;
    }

    .branch-switcher {
        margin-bottom: 1rem;
        gap: 0.5rem !important;
    }

    .branch-switcher .btn {
        font-size: 0.85rem !important;
        padding: 0.3rem 0.6rem !important;
    }

    /* Building table improvements */
    .building-table {
        width: 100%;
        font-size: 0.9rem;
    }

    .building-table th {
        padding: 0.5rem 0.3rem;
        font-size: 0.85rem;
    }

    .building-table td {
        padding: 0.7rem 0.5rem;
        vertical-align: middle;
    }

    .building-name-mobile {
        font-weight: 600;
        color: #333;
    }

    .mobile-building-details {
        background: #f8f9fa;
        border-radius: 0.5rem;
        padding: 1rem;
        margin: 0.5rem 0;
        border-left: 3px solid #007bff;
    }

    .mobile-building-details div {
        margin-bottom: 0.5rem;
    }

    .mobile-building-details strong {
        color: #495057;
    }

    .expand-icon {
        transition: transform 0.3s ease;
    }

    .expand-icon.rotated {
        transform: rotate(180deg);
    }

    /* Better god card backgrounds on mobile */
    .building-table-wrapper {
        overflow-x: auto;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }

    /* Card spacing improvements */
    .god-card .building-table-wrapper {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .container-main {
        padding: 0 8px;
    }

    .god-card {
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .god-header h3 {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 40px 16px;
    }
    
    .page-subtitle {
        font-size: 1.05rem;
    }    
    .toc-card {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .toc-card h2 {
        font-size: 1rem;
    }
    
    .toc-card li {
        font-size: 0.9rem;
    }
    
    .building-table-wrapper h5 {
        font-size: 0.95rem;
    }
    
    .table td,
    .building-table td,
    .event-table td,
    .reputation-table td {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .table td::before,
    .building-table td::before,
    .event-table td::before,
    .reputation-table td::before {
        min-width: 90px;
        font-size: 0.8rem;
    }
    
    .table td:first-child,
    .building-table td:first-child,
    .event-table td:first-child,
    .reputation-table td:first-child {
        font-size: 1rem;
        padding: 10px 12px;
    }
    
    .building-table td[data-label="Budova"] {
        font-size: 1rem;
        padding: 12px;
    }
    
    .building-table td[data-label="Pořadí"] {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .unit-name-tooltip {
        font-size: 0.9rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
    
    .intro-text,
    .info-box,
    .toc-card {
        padding: 12px;
    }
}

/* ==========================================================
   RESOURCE PANEL (index.php)
   ========================================================== */
.resource-panel {
    margin: 0 0 28px 0;
    padding: 0;
}
.resource-bar {
    background: #fff !important;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 18px 10px 12px 10px !important;
    margin-bottom: 18px;
    width: 100%;
    overflow-x: auto;
}
.resource-bar .row {
    flex-wrap: nowrap;
}
.resource-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    color: #232526;
    border-radius: 30px;
    padding: 7px 28px 7px 16px;
    font-size: 1.08rem;
    font-weight: 600;
    min-width: 140px;
    min-height: 38px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1.5px solid #e0e0e0;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    justify-content: flex-start;
}
.resource-pill i, .resource-pill img {
    font-size: 1.25em;
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}
.resource-pill img {
    margin-right: 6px;
    margin-left: -2px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    object-fit: contain;
}
.resource-pill span {
    font-size: 1.08em;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #232526;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pill-gold i { color: #ffd700; }
.pill-citizens i { color: #607d8b; }
.pill-turns i { color: #29b6f6; }
.pill-power i { color: #e53935; }
.pill-fame i { color: #ffd700; }
.pill-omen i { color: #43a047; }
.pill-rune img { background: #f8f9fa; border: 1px solid #e0e0e0; }
@media (max-width: 900px) {
    .resource-bar { padding: 10px 2px 8px 2px !important; }
    .resource-pill { font-size: 0.98rem; padding: 6px 12px 6px 10px; min-width: 110px; }
    .resource-pill i, .resource-pill img { width: 22px; height: 22px; }
}
@media (max-width: 600px) {
    .resource-bar { padding: 6px 0 4px 0 !important; }
    .resource-pill { font-size: 0.93rem; padding: 4px 7px 4px 7px; min-width: 90px; }
    .resource-pill i, .resource-pill img { width: 18px; height: 18px; }
}

        /* Globální zarovnání všech buněk tabulek na střed */
        .building-table th,
        .building-table td {
            text-align: center !important;
            vertical-align: middle !important;
        }
        /* Default styl pro všechny tabulky */
        .building-table,
        .building-table th,
        .building-table td {
            font-size: 0.92rem !important;
            padding: 0.25rem 0.4rem !important;
            line-height: 1.2 !important;
        }
        .building-table th {
            font-weight: 600;
        }
        .building-table td {
            vertical-align: middle;
        }
        .building-table tr {
            min-height: 0;
        }
        .building-table .upgrade-info {
            font-size: 0.85em;
            margin-top: 0.1em;
            display: block;
        }

                /* Sjednocené styly pro tabulky bohů */
                .god-card .building-table,
                .god-card .building-table th,
                .god-card .building-table td {
                    font-size: 0.92rem !important;
                    padding: 0.18rem 0.35rem !important;
                    line-height: 1.15 !important;
                    text-align: center !important;
                }
                .god-card .building-table th {
                    font-weight: 700;
                    vertical-align: middle !important;
                    font-size: 1em !important;
                    letter-spacing: 0.03em;
                }
                .god-card .building-table td {
                    vertical-align: middle;
                }
                .god-card .building-table td[data-label="Podmínky"],
                .god-card .building-table td[data-label="Vlastnosti"],
                .god-card .building-table th[data-label="Podmínky"],
                .god-card .building-table th[data-label="Vlastnosti"] {
                    font-size: 0.78em !important;
                    text-align: center !important;
                    vertical-align: middle !important;
                }
                .god-card .building-table td[data-label="Jednotka"],
                .god-card .building-table td[data-label="Cena"],
                .god-card .building-table th[data-label="Jednotka"],
                .god-card .building-table th[data-label="Cena"] {
                    white-space: nowrap !important;
                }
                .god-card .building-table td[data-label="Cena"] {
                    font-size: 0.78em !important;
                }
                .god-card .building-table tr {
                    min-height: 0;
                }
                .god-card .building-table .upgrade-info {
                    font-size: 0.82em;
                    margin-top: 0.08em;
                    display: block;
                }
                .god-card .building-table-wrapper {
                    margin-bottom: 1.2rem;
                }
                @media (max-width: 900px) {
                    .god-card {
                        max-width: 100%;
                        padding: 0 0.2rem;
                    }
                    .god-card .god-header {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        justify-content: space-between;
                        gap: 0.5rem;
                        margin-bottom: 1.2rem;
                    }
                    .god-card .god-header h3 {
                        font-size: 1.7rem;
                        font-weight: 700;
                        margin-bottom: 0;
                    }
                    .god-card .branch-switcher {
                        margin-top: 0;
                    }
                    .god-card .building-table td {
                        font-size: 0.80rem !important;
                        padding: 0.12rem 0.15rem !important;
                    }
                }

                        @media (max-width: 900px) {
            .gods-switcher {
                gap: 0.5rem;
            }
            .gods-switcher .btn {
                min-width: 120px;
                font-size: 1rem;
                margin-bottom: 0.5rem;
            }
        }
        @media (max-width: 600px) {
            .gods-switcher .btn {
                min-width: 90px;
                font-size: 0.95rem;
                padding: 0.3rem 0.5rem;
            }
        }

        .building-table .tier-separator > td {
    border-top: 3px solid #333 !important;
}
.attacker-preview-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.attacker-preview-list > div {
  border: none !important;
  width: 100%;
  min-width: 180px;
  max-width: 420px;
  margin: 0.25rem 0;
  padding: 0.5rem 1rem;
  background: #222 !important;
  color: #fff !important;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
}
.attacker-preview-list input.unit-count {
  margin-left: auto;
}
