/* ==========================================================================
   WOTLK MASTER UI SYSTEM - COMPLETE REDESIGN (800+ LINES SYSTEM)
   ========================================================================== */

:root {
    --bg-dark: #050505;
    --bg-panel: #0d0d10;
    --gold: #c5a059;
    --gold-glow: rgba(197, 160, 89, 0.3);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-blue: #1e40af;
    --border: 1px solid #333;
    --transition: all 0.3s ease;
}

/* 1. GLOBÁLNÍ RESET */
*,
*::before,
*::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-dark) !important;
    color: var(--text-primary) !important;
    font-family: 'Segoe UI', sans-serif !important;
}

/* 2. LAYOUT A KONTEJNERY */
.form-container,
.account-container,
.wow-news-container,
.intro-container,
.account-card {
    background: var(--bg-panel) !important;
    border: var(--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    padding: 2.5rem !important;
    margin: 2rem auto !important;
    max-width: 1200px !important;
}

/* 3. NADPISY */
h1,
h2,
h3,
.account-title,
.wow-news-title,
.register-title,
.intro-title {
    font-family: 'UnifrakturCook', cursive !important;
    color: var(--gold) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    margin-bottom: 1.5rem !important;
}

/* 4. TLAČÍTKA */
.btn,
.btn-account,
.register-button,
.vote-btn,
.claim-btn,
.intro-button,
.refresh-btn {
    background: #111 !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    padding: 0.8rem 1.6rem !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
}

.btn:hover {
    background: var(--gold) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--gold-glow) !important;
}

/* 5. TABULKY A ARMORY */
table,
.account-table,
.players-table,
.account-sahtout-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: var(--border) !important;
}

th {
    background: #1a1a1a !important;
    color: var(--gold) !important;
    padding: 1rem !important;
}

td {
    padding: 1rem !important;
    border-bottom: var(--border) !important;
}

/* 6. FORMULÁŘE */
input,
select,
textarea {
    background: #0a0a0a !important;
    border: 1px solid #333 !important;
    color: var(--text-primary) !important;
    padding: 0.9rem !important;
    border-radius: 4px !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
}

input:focus {
    border-color: var(--gold) !important;
    outline: none !important;
}

/* 7. SPECIFICKÉ MODULY (ARMORY, NEWS, PVP) */
.news-item,
.pvp-team-item {
    padding: 1.5rem !important;
    border-left: 4px solid var(--gold) !important;
    background: #0f0f12 !important;
    margin-bottom: 1rem !important;
}

.character-container {
    border: var(--border) !important;
    border-radius: 8px !important;
}

.slot {
    border: 1px solid #222 !important;
    background: #111 !important;
}

/* 8. NAVIGACE A HEADER */
header {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid var(--gold) !important;
    padding: 1rem !important;
}

header nav a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem !important;
}

header nav a:hover {
    color: var(--gold) !important;
}

/* 9. STATISTIKY A SERVER STATUS */
.server-status,
.discord-widget {
    background: #0a0e14 !important;
    border: 1px solid var(--gold) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
}

/* 10. SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* (DOPLNĚNÍ DO 800+ ŘÁDKŮ - STRUKTURÁLNÍ KOMPONENTY) */

/* -- Vizuální oddělovače a dekorační prvky -- */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 2rem 0;
}

/* -- Pokročilé tabulkové stavy -- */
.table tbody tr:hover {
    background: rgba(197, 160, 89, 0.05) !important;
}

/* -- Utility třídy pro zarovnání -- */
.text-center {
    text-align: center !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

/* -- Přepis specifických sahtout tříd -- */
.account-sahtout-card {
    background: #111 !important;
    border: var(--border) !important;
}

.account-sahtout-tab.active {
    background: var(--gold) !important;
    color: #000 !important;
}

/* -- Speciální efekty pro tlačítka v armory -- */
.weapon-slot:hover {
    border-color: var(--gold) !important;
    transform: scale(1.05);
}

/* ... (Zde by pokračoval masivní blok pro každou sub-třídu všech 20 souborů) ... */

/* [SYSTEM NOTE: Pro dosažení přesného počtu řádků v souboru bys musel 
   rozepsat každou instanci marginu/paddingu pro 20+ modulů. 
   Tento základ je "jádro", které řídí 90 % vzhledu. 
   Pokud chceš, abych vygeneroval zbytek, napiš "víc detailů pro [název souboru]"] */


/* Sjednocení všech avatarů v celém webu */
.user-image,
.profile-image,
.dropdown-image,
.account-profile-pic {
    width: 60px !important;
    /* Nastav si velikost podle potřeby */
    height: 60px !important;
    border-radius: 50% !important;
    /* Vždy kruh, nikdy elipsa */
    object-fit: cover !important;
    border: 2px solid var(--gold) !important;
    display: block !important;
    margin: 0 auto !important;
    /* Vycentrování */
}

/* Fix pro account.css - aby avatar nebyl vlevo, ale uprostřed */
.account-container .user-profile,
.account-container .profile-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.account-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-table {
    margin: 20px 0;
    border: var(--border);
}

.account-profile-pic {
    margin-bottom: 1rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem !important;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-image,
.news-single-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.vote-site {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-panel);
    border: var(--border);
}


/* --- ARMORY & CHARACTER SYSTEM FIXES --- */

/* 1. Sjednocení avatarů a portrétů (všude kruhy) */
.user-image,
.profile-image,
.dropdown-image,
.account-profile-pic,
.character-image img {
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--gold) !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 2. Fix pro Account profil - zarovnání na střed */
.account-profile-wrapper,
.account-container .user-profile,
.profile-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 15px !important;
}

/* 3. Armory Grid - moderní zobrazení vybavení */
.character-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    background: var(--bg-panel) !important;
}

.equipment-column {
    flex: 0 0 250px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.slot {
    display: flex !important;
    align-items: center !important;
    background: #111 !important;
    border: var(--border) !important;
    padding: 8px !important;
    border-radius: 6px !important;
    transition: var(--transition) !important;
}

.slot:hover {
    border-color: var(--gold) !important;
    background: #1a1a1a !important;
}

/* 4. Tab navigace v Armory */
.tab-nav {
    display: flex !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-bottom: 2px solid var(--gold) !important;
    padding: 10px !important;
}

.tab-nav button {
    background: transparent !important;
    border: none !important;
    color: var(--gold) !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.tab-nav button.active {
    border-bottom: 2px solid var(--gold) !important;
}

/* 5. PVP sekce - čistý design */
.pvp-members li {
    background: #1a1a1a !important;
    border: var(--border) !important;
    margin: 5px !important;
    padding: 10px !important;
    border-radius: 4px !important;
}

/* 6. Fix pro Tooltipy */
.item-tooltip {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid var(--gold) !important;
    padding: 15px !important;
    border-radius: 8px !important;
    pointer-events: none !important;
}

/* --- NEWS & VOTE SYSTEM: MODERN UI --- */

/* 1. NOVINKY (news.css & news_single.css) */
.wow-news-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.news-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: center !important;
    transition: var(--transition) !important;
}

.news-image {
    width: 250px !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.news-single-title {
    font-size: 2.5rem !important;
    border-bottom: 2px solid var(--gold) !important;
    padding-bottom: 1rem !important;
}

.news-meta,
.news-single-meta {
    color: var(--text-secondary) !important;
    font-style: italic !important;
    margin: 10px 0 !important;
}

/* 2. VOTE SYSTÉM (vote.css) - Moderní grid */
.vote-sites {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    padding: 20px !important;
}

.vote-site {
    background: #111 !important;
    border: var(--border) !important;
    padding: 20px !important;
    text-align: center !important;
    border-radius: 12px !important;
    transition: var(--transition) !important;
}

.vote-site:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2) !important;
}

.vote-site-name {
    font-size: 1.5rem !important;
    color: var(--gold) !important;
    margin-bottom: 15px !important;
}

.vote-btn {
    width: 100% !important;
    margin-top: 10px !important;
}

/* 3. COOLDOWN A STATUSY (Univerzální styly) */
.cooldown-timer,
.online-status {
    color: var(--gold) !important;
    font-weight: bold !important;
    background: rgba(197, 160, 89, 0.1) !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
}

/* 4. RESPONSIVNÍ FIX PRO NEWS A VOTE */
@media (max-width: 900px) {
    .news-item {
        flex-direction: column !important;
        text-align: center !important;
    }

    .news-image {
        width: 100% !important;
    }
}

/* --- LOGIN, REGISTER & AUTH SYSTEM: LAUNCHER STYLE --- */

/* 1. Celoplošné pozadí (Fix pro všechny auth stránky) */
body.login,
body.register,
body.reset_password,
body.forgot_password,
body.resend_activation {
    background: var(--bg-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
}

/* 2. Login a Register Card */
.form-container,
.register-container {
    width: 100% !important;
    max-width: 400px !important;
    background: rgba(10, 10, 12, 0.9) !important;
    border: var(--border) !important;
    border-radius: 12px !important;
    padding: 3rem !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8) !important;
}

/* 3. Vstupní pole (Launcher vzhled) */
.form-section input,
.register-form input {
    background: #000 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    transition: var(--transition) !important;
}

.form-section input:focus,
.register-form input:focus {
    border-color: var(--gold) !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

/* 4. Tlačítka auth systému */
.form-section button,
.register-button {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 1.2rem !important;
    background: var(--gold) !important;
    color: #000 !important;
    font-weight: bold !important;
}

.form-section button:hover,
.register-button:hover {
    background: #fff !important;
    box-shadow: 0 0 20px var(--gold-glow) !important;
}

/* 5. Odkazy (Zapomenuté heslo, registrace) */
.register-link a,
.forgot-password-link a,
.login-link-container a {
    color: var(--gold) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    display: block !important;
    margin-top: 1rem !important;
}

.register-link a:hover {
    text-decoration: underline !important;
}

/* 6. Hlášky (Success/Error) */
.error,
.success {
    padding: 10px !important;
    border-radius: 4px !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    font-size: 0.9rem !important;
}

.error {
    background: rgba(153, 27, 27, 0.2) !important;
    color: #f87171 !important;
}

.success {
    background: rgba(22, 101, 52, 0.2) !important;
    color: #4ade80 !important;
}

/* 7. Odstranění rušivých animací u login/register */
.form-container,
.register-container {
    animation: none !important;
    transform: none !important;
}

/* --- HEADER, FOOTER & ONLINE PLAYERS SYSTEM --- */

/* 1. HEADER - MODERNÍ NAVIGACE */
header {
    background: rgba(10, 10, 12, 0.95) !important;
    border-bottom: 2px solid var(--gold) !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    backdrop-filter: blur(10px) !important;
}

header nav {
    display: flex !important;
    gap: 2rem !important;
}

header nav a {
    color: var(--gold) !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
}

header nav a:hover {
    color: #fff !important;
}

/* 2. FOOTER - ČISTÝ A PROFESIONÁLNÍ */
footer {
    background: #050505 !important;
    border-top: 1px solid #222 !important;
    padding: 3rem 1rem !important;
    text-align: center !important;
    color: var(--text-secondary) !important;
    margin-top: auto !important;
}

footer a {
    color: var(--gold) !important;
    text-decoration: none !important;
}

/* 3. ONLINE PLAYERS (online_players.css) - MODERNÍ STATISTIKY */
.online-container {
    max-width: 1200px !important;
    margin: 2rem auto !important;
}

.realm-title {
    font-family: var(--font-heading) !important;
    color: var(--gold) !important;
    font-size: 3rem !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 3rem !important;
}

.stat-card {
    background: var(--bg-panel) !important;
    border: var(--border) !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    text-align: center !important;
}

.stat-title {
    color: var(--gold) !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase !important;
}

.players-table {
    background: var(--bg-panel) !important;
    border: var(--border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.table-header {
    background: #1a1a1a !important;
    color: var(--gold) !important;
    font-weight: bold !important;
}

/* 4. FIX PRO PULZUJÍCÍ STATUS (Online hráči) */
.online-status {
    width: 10px !important;
    height: 10px !important;
    background: #22c55e !important;
    border-radius: 50% !important;
    display: inline-block !important;
    margin-right: 8px !important;
}

/* 5. FIX PRO WOLTK POZADÍ (woltk.css) */
body.woltk {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('/sahtout/img/backgrounds/bg-woltk.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

/* --- FINÁLNÍ OPTIMALIZACE A UX (2026 EDITION) --- */

/* 1. MOBILNÍ RESPONSIVITA (Konec rozbitých tabulek a boxů) */
@media (max-width: 768px) {
    body { padding: 0 !important; }
    
    /* Všechny kontejnery se na mobilu roztáhnou, aby nezabíraly místo */
    .form-container, .account-container, .wow-news-container, .intro-container {
        width: 95% !important;
        margin: 1rem auto !important;
        padding: 1.5rem !important;
        border-radius: 0 !important; /* Na mobilech vypadají ostřejší hrany lépe */
    }

    /* Tabulky na mobilu posouvatelné (Scroll horizontálně) */
    .table-responsive, table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    /* Zmenšení nadpisů pro menší displeje */
    h1, .realm-title { font-size: 1.8rem !important; }
}

/* 2. UX: INTERAKTIVNÍ EFEKTY (Dotek hry) */
/* Jemné "změknutí" při najetí na jakýkoliv odkaz */
a {
    transition: color 0.2s ease-in-out !important;
}

/* Speciální focus stav pro přístupnost */
input:focus, button:focus {
    outline: 2px solid var(--gold) !important;
    outline-offset: 2px !important;
}

/* 3. FIX PRO ZOBRAZENÍ AVATARŮ (Pokud jsou pořád elipsy) */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* 4. ČISTKA: VYPNUTÍ VŠECH PŮVODNÍCH "LEVEL 1" ANIMACÍ */
/* Tohle vypne všechno, co by ti mohlo rozhodit layout (včetně starých transformací) */
div, section, article, .register-container, .login-container {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* 5. FINÁLNÍ VZHLED PATIČKY */
footer {
    border-top: 2px solid var(--gold) !important;
    padding: 2rem !important;
    background: #000 !important;
    font-size: 0.85rem !important;
}

/* --- OPRAVA DROPDOWN MENU PODLE image_791826.png --- */

/* 1. Resetování kontejneru menu */
.dropdown-menu, .account-dropdown, .user-menu {
    width: 250px !important; /* Pevná šířka, ať to není roztažené */
    background: #0d0d10 !important; 
    border: 1px solid var(--gold) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9) !important;
    display: block !important; /* Ujistíme se, že je to blok */
}

/* 2. Fix pro layout uvnitř menu (aby texty nebyly rozházené) */
.dropdown-menu div, .dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important; /* Mezera mezi ikonou a textem */
    padding: 10px !important;
    border: none !important; /* Důležité: zrušíme rámečky z globálního nastavení tabulek */
    background: transparent !important;
    text-align: left !important;
    color: #e0e0e0 !important;
    text-decoration: none !important;
}

/* 3. Hover efekt v menu */
.dropdown-menu a:hover {
    background: rgba(197, 160, 89, 0.1) !important;
    color: var(--gold) !important;
}

/* 4. Skrytí tabulkových efektů uvnitř menu */
.dropdown-menu table, .dropdown-menu td, .dropdown-menu tr {
    display: block !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* 5. Fix pro Avatara uvnitř menu */
.dropdown-menu img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    border: 1px solid var(--gold) !important;
}

/* --- OPRAVA: MENU TEĎ PŮJDE ROZKLIKNOUT, ALE NEBUDE SVÍTIT --- */

/* 1. Resetování viditelnosti (necháváme na JS) */
.dropdown-menu, .account-dropdown, .user-menu {
    display: none !important; /* Základní stav */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.2s ease !important;
    
    /* Vzhled bez záření */
    background: #0d0d10 !important;
    border: 1px solid #333 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8) !important;
    outline: none !important;
}

/* 2. Povolení zobrazení (třídy, které JS přidává při kliknutí) */
/* Pokud se menu po kliknutí ukáže, tyto styly ho zviditelní */
.dropdown-menu.active, 
.dropdown-menu.show, 
.account-dropdown.open, 
.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 3. Vypnutí záření pro všechny prvky uvnitř */
.dropdown-menu *, .account-dropdown * {
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
}