/* =========================================================
   ⚔️ EPIC MU ONLINE: CLASSIC SEASON 6 EP3 (NO P2W) ⚔️
   ========================================================= */

:root {
    --bg-dark: #050505;          /* Плътен, тъмен фентъзи фон (без черти) */
    --bg-panel: #0a0a0c;         /* Основен цвят на кутиите */
    --bg-panel-2: #121215;       /* Алтернативен цвят за контраст */
    
    --line: #3a0b0b;             /* Тъмно кърваво червено за рамки */
    --line-gold: #5c4a21;        /* Тъмно злато за акценти */
    
    --mu-red: #8b0000;           /* Основно Mu червено */
    --mu-red-light: #ba1212;     /* Светло червено */
    
    --gold: #d4af37;             /* Премиум златно */
    --gold-pure: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    
    --text: #a8a8a8;             /* Класически сив текст */
    --text-light: #dcdcdc;       /* Бял/Сребърен текст за акцент */
}

/* ================= GLOBAL RESET & BODY ================= */
body {
    background: var(--bg-dark);
    margin: 20px;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text-light);
}

body, table, td, th {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 11px;
    color: var(--text);
}

table {
    border-collapse: collapse;
    table-layout: auto;
}

/* ================= THE LOGO & CONTAINERS ================= */
.logo {
    width: 920px;
    margin: 0 auto 15px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    border: 1px solid var(--line-gold);
    border-bottom: 2px solid var(--mu-red);
}

.logo img {
    display: block;
    width: 920px;
    height: auto;
}

.main-container {
    width: 920px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--line-gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.95);
}

.content-wrapper {
    background: #080809;
    padding: 6px;
}

.inner-layout {
    width: 100%;
}

.sidebar {
    width: 168px;
    vertical-align: top;
    padding: 4px;
}

.main-content {
    vertical-align: top;
    padding: 4px;
}

/* ================= SCROLLING HEADER ================= */
.top-header {
    height: 30px;
    background: linear-gradient(to bottom, #1a0505, #0a0202);
    border-bottom: 1px solid var(--line-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.top-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.05);
}

.welcome-text {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    color: #a68827;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-text span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

.welcome-text b {
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ================= LINKS & HOVERS ================= */
a:link, a:visited {
    color: #a68827;
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    color: var(--text-light);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* ================= STATUS INDICATORS ================= */
.online {
    color: #55ff55;
    font-weight: bold;
}

.offline {
    color: #ff3333;
    font-weight: bold;
}

/* ================= FORUM / INFO SYSTEM ================= */
.sizedforum { max-width: 400px; width: 400px; overflow: hidden; }
.sizedcomment {
    max-width: 300px; width: 300px;
    white-space: normal; word-break: break-word;
    overflow-wrap: anywhere;
}

.info-table {
    background: var(--bg-panel);
    color: var(--text);
    text-align: center;
    border: 1px solid var(--line);
}

.info-td {
    background: var(--bg-panel-2);
    color: var(--text-light);
    text-align: center;
}

/* ================= BLOCK BOX SYSTEM ================= */
.block-table {
    width: 100%;
    margin-bottom: 8px;
    background: var(--bg-panel-2);
    border: 1px solid #1a1a1c;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    transition: 0.2s;
}

.block-table:hover {
    border-color: var(--line-gold);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.4), inset 0 0 10px rgba(212, 175, 55, 0.05);
}

/* Огнена/златна анимирана рамка за No P2W хардкор усещане */
.block-table::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 8px;
    background: linear-gradient(90deg, transparent, var(--mu-red), var(--gold), var(--mu-red), var(--line-gold), transparent);
    background-size: 300% 100%;
    animation: muGlowMove 8s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
}

@keyframes muGlowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.block-title {
    padding: 10px;
    background: linear-gradient(to bottom, #240606, #120303);
    border-bottom: 1px solid var(--mu-red);
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px #000;
}

.block-content {
    padding: 8px;
    background: var(--bg-panel);
}

.block-table td { color: var(--text); }
.block-table ul { margin: 0; padding-left: 14px; }
.block-table li { padding: 2px 0; }

/* MENU LINKS SYSTEM */
.menu-link {
    display: block;
    padding: 6px 5px;
    border-bottom: 1px solid #161619;
    color: var(--text);
    transition: transform 0.2s ease, color 0.2s ease, border-left 0.2s ease;
    border-left: 2px solid transparent;
}
.menu-link:hover {
    color: var(--gold);
    border-left: 2px solid var(--mu-red);
    background: #0f0f11;
    transform: translateX(4px);
}
.menu-link:last-child { border-bottom: none; }

.div-menu-out, .div-menu-out td { font-weight: bold; cursor: pointer; color: #a68827; transition: 0.2s ease; }
.div-menu-over, .div-menu-over td { color: var(--text-light) !important; text-shadow: 0 0 5px rgba(255,255,255,0.3); }

.block-left, .block-right, .block-up, .block-down {
    background: none !important; width: 0 !important; height: 0 !important;
    padding: 0 !important; margin: 0 !important; font-size: 0; line-height: 0;
}

/* ================= WEBZEN TABLES (RANKINGS & DATA) ================= */
.sort-table, .lb-table {
    width: 100%;
    margin: 10px auto;
    border-collapse: collapse;
    background: var(--bg-panel);
    border: 1px solid #1a1a1c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    font-size: 11px;
    position: relative;
}

.sort-table::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mu-red), transparent);
    opacity: 0.8;
}

.sort-table thead th, .sort-table thead td, .lb-table th {
    background: #0a0a0c;
    color: var(--gold);
    border-bottom: 2px solid var(--line-gold);
    padding: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

.sort-table tbody td, .lb-table td {
    padding: 7px;
    border-bottom: 1px solid #161619;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

/* Тъмно сиво / Черно редуване (Classic Style) */
.sort-table tbody tr:nth-child(odd) { background: #0c0c0e; }
.sort-table tbody tr:nth-child(even) { background: #121215; }

.sort-table tbody tr:hover td, .lb-table tr:hover td {
    background: #1f0909 !important; /* Тъмно кърваво при посочване */
    color: var(--text-light) !important;
}

.sort-table td:first-child, .rank-number {
    color: var(--text-light);
    font-weight: bold;
    width: 40px;
}

/* ================= WEBZEN TOP 3 AURAS ================= */
.sort-table tbody tr.rank-1 td, .lb-1 td {
    background: rgba(212, 175, 55, 0.08) !important;
    color: var(--gold) !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    border-left: 3px solid var(--gold) !important;
    animation: muPulse 3s infinite ease-in-out;
}

.sort-table tbody tr.rank-2 td, .lb-2 td {
    background: rgba(192, 192, 192, 0.05) !important;
    color: var(--silver) !important;
    border-left: 3px solid var(--silver) !important;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
    animation: muPulse 3s infinite ease-in-out;
}

.sort-table tbody tr.rank-3 td, .lb-3 td {
    background: rgba(205, 127, 50, 0.05) !important;
    color: var(--bronze) !important;
    border-left: 3px solid var(--bronze) !important;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
    animation: muPulse 3s infinite ease-in-out;
}

@keyframes muPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
    100% { filter: brightness(1); }
}

/* ================= FLOATING CROWN ================= */
.crown-wrap {
    display: inline-block;
    position: relative;
    animation: royalFloat 1.8s ease-in-out infinite;
}

.crown-svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
    filter: drop-shadow(0 0 4px #000);
}

@keyframes royalFloat {
    0%, 100% { transform: translateY(0px); filter: drop-shadow(0 0 2px var(--gold)); }
    50% { transform: translateY(-3px); filter: drop-shadow(0 0 8px var(--gold)); }
}

.rank-icon {
    width: 28px;
    height: 28px;
    display: block;
    margin: auto;
    transition: all .3s ease;
}

/* ================= HELP & TOOLTIP ================= */
.helpLink { color: #a68827; text-decoration: underline; cursor: help; }
.helpLink:hover { color: var(--gold); }

#tooltip {
    position: absolute;
    z-index: 9999;
    border: 1px solid var(--line-gold);
    background: var(--bg-panel);
    color: var(--text-light);
    padding: 6px;
    max-width: 468px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

/* ================= INPUTS & FORMS ================= */
input, textarea, option, button, select {
    border: 1px solid var(--line-gold);
    font-size: 11px;
    background: #050505;
    color: var(--text-light);
    padding: 4px;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--mu-red);
    outline: none;
}

/* ================= EPIC PREMIUM MMO BUTTONS ================= */
button, input[type=submit], input[type=reset] {
    background: linear-gradient(to bottom, #3a0b0b, #1a0000);
    text-transform: uppercase;
    cursor: pointer;
    color: var(--gold);
    border: 1px solid var(--line-gold);
    min-width: 80px;
    padding: 5px 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px #000;
}

button:hover, input[type=submit]:hover, input[type=reset]:hover {
    background: linear-gradient(to bottom, #5c1212, #2e0000);
    color: var(--text-light);
    border-color: var(--mu-red-light);
    box-shadow: 0 0 8px rgba(186, 18, 18, 0.5);
}