/* =========================================
   LOST ARK STYLE OVERRIDE - ÉPICO DARK THEME
   ========================================= */

/* --- Tipografia e Cores Base --- */
:root {
    --color-bg-dark: #050505;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111111;
    --color-gold: #d4af37;
    --color-gold-hover: #f5cc55;
    --color-text-gray: #a0a0a0;
    --color-primary-glow: rgba(212, 175, 55, 0.5);
    --font-cinzel: 'Cinzel', serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

body {
    background-color: var(--color-bg-dark) !important;
    color: #ffffff;
    font-family: var(--font-montserrat);
    overflow-x: hidden;
}

.cinzel-font { font-family: var(--font-cinzel); }
.text-gold { color: var(--color-gold); }
.text-gray { color: var(--color-text-gray); }
.text-white { color: #fff; }
a, a:hover, a:focus { text-decoration: none; transition: all 0.3s ease; }

.navbar-brand img.site-logo{ height:100px; width:auto; }

#la-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 9999; }
.loark-navbar { background: transparent !important; border: none !important; padding: 15px 0; transition: all 0.4s ease; }
.loark-navbar.solid-nav { background: rgba(5, 5, 5, 0.95) !important; box-shadow: 0 2px 10px rgba(0,0,0,0.5); padding: 5px 0; }
.navbar-nav.navbar-left { display: flex !important; flex-direction: row !important; list-style: none !important; padding: 0 !important; margin: 10px 0 0 20px !important; }
.navbar-nav.navbar-left li { display: inline-block !important; margin-right: 20px !important; }
.navbar-nav.navbar-left li::before { content: none !important; display: none !important; }
.navbar-nav > li > a { color: #fff !important; font-family: var(--font-montserrat); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; background: transparent !important; padding: 10px 5px !important; }
.navbar-nav > li > a:hover { color: var(--color-gold) !important; background: transparent !important; }

.user-nav { display: flex !important; flex-direction: row !important; align-items: center; }
.btn-login-nav, .btn-register-nav { margin-top: 0 !important; padding: 8px 15px !important; border-radius: 2px; margin-left: 10px; }
.btn-login-nav { border: 1px solid rgba(255,255,255,0.3); }
.btn-login-nav:hover { border-color: var(--color-gold); }
.btn-register-nav { background-color: var(--color-gold) !important; color: #000 !important; }
.btn-register-nav:hover { background-color: var(--color-gold-hover) !important; box-shadow: 0 0 10px var(--color-primary-glow); }

.la-section { padding: 80px 0; position: relative; }
.header-divider { height: 2px; width: 60px; background: var(--color-gold); margin: 20px auto 40px; }
.section-header h2 { font-size: 3rem; letter-spacing: 2px; }

.la-hero-section { background-size: cover; background-attachment: fixed; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.8) 70%, var(--color-bg-dark) 100%); }
.hero-content { position: relative; z-index: 2; margin-top: 100px; }
.hero-title { font-size: 6rem; text-shadow: 0 5px 20px rgba(0,0,0,0.8); margin-bottom: 10px; }
.hero-subtitle { font-size: 2rem; color: var(--color-gold); margin-bottom: 50px; }

.btn-la { padding: 15px 50px; font-family: var(--font-cinzel); font-weight: 700; font-size: 16px; border-radius: 2px; margin: 0 10px; display: inline-block; }
.btn-la-primary { background: var(--color-gold); color: #000; box-shadow: 0 0 20px var(--color-primary-glow); }
.btn-la-primary:hover { background: var(--color-gold-hover); box-shadow: 0 0 40px var(--color-primary-glow); color: #000; }
.btn-la-outline { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-la-outline:hover { border-color: var(--color-gold); color: var(--color-gold); background: rgba(0,0,0,0.3); }

.la-feature-section { background: url('../img/feature_bg.jpg') no-repeat center center; background-size: cover; padding: 150px 0; }
.feature-box { background: rgba(0,0,0,0.7); padding: 50px; border: 1px solid rgba(212, 175, 55, 0.2); backdrop-filter: blur(5px); }

.la-news-section { background-color: var(--color-bg-secondary); }
.news-card { background: var(--color-bg-tertiary); border: 1px solid #222; transition: transform 0.3s ease; height: 100%; }
.news-card:hover { transform: translateY(-5px); border-color: var(--color-gold); }
.news-thumb { height: 200px; background-position: center; background-size: cover; position: relative; }
.news-info { padding: 25px; position: relative; }
.news-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 10px; position: absolute; top: -15px; left: 25px; }
.news-cat.general { background: #555; }
.news-cat.event { background: #912525; }
.news-cat.update { background: var(--color-gold); color: #000; }
.news-info h4 a { color: #fff; font-size: 1.4rem; }
.news-excerpt { color: var(--color-text-gray); font-size: 12px; margin: 15px 0; }
.read-more { color: var(--color-gold); font-size: 11px; text-transform: uppercase; font-weight: 700; }

.la-guides-section { background-color: var(--color-bg-dark); }
.guide-card { display: block; height: 350px; background-size: cover; background-position: center; position: relative; margin-bottom: 30px; border: 1px solid #222; overflow: hidden; }
.guide-card::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); transition: all 0.3s ease; }
.guide-card:hover::before { background: rgba(0,0,0,0.3); }
.guide-card:hover { border-color: var(--color-gold); }
.guide-content { position: absolute; bottom: 30px; left: 30px; right: 30px; z-index: 2; }
.guide-content h3 { color: #fff; font-size: 2rem; margin-bottom: 5px; }
.guide-content p { color: #ccc; font-size: 13px; }
.btn-guide { font-size: 11px; font-weight: 700; color: var(--color-gold); text-transform: uppercase; margin-top: 15px; display: inline-block; border-bottom: 1px solid var(--color-gold); }

.page-inner { padding-top: 90px; }
.content-box-dark { background: var(--color-bg-secondary); padding: 30px; border: 1px solid #222; }
.content-box-dark h1, .content-box-dark h2, .sidebar .panel-heading { font-family: var(--font-cinzel) !important; color: #fff; text-transform: uppercase; }

.la-footer { background-color: #111111; padding: 50px 40px 30px; border-top: 1px solid #1a1a1a; font-family: var(--font-montserrat); }
.footer-container { max-width: 1500px; margin: 0 auto; }
.footer-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.footer-logo-left img { max-height: 45px; filter: grayscale(100%) brightness(200%); opacity: 0.8; }
.btn-back-to-top { display: inline-block; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 3px; text-decoration: none !important; transition: color 0.3s ease; margin-bottom: 20px; }
.btn-back-to-top:hover { color: var(--color-gold); }
.lang-selector { color: #888; font-size: 13px; cursor: pointer; }
.lang-selector:hover { color: #fff; }
.footer-esrb { text-align: right; }
.footer-esrb img { max-height: 75px; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #222; padding-top: 30px; }
.footer-partners { color: #fff; opacity: 0.8; }
.legal-links { margin-bottom: 15px; }
.legal-links a { color: #999; font-size: 12px; font-weight: 600; margin: 0 12px; text-decoration: none !important; transition: color 0.3s; }
.legal-links a:hover { color: #fff; }
.copyright-text { color: #666; font-size: 11px; line-height: 1.6; max-width: 800px; margin: 0 auto; }
.footer-social { text-align: right; }
.footer-social a { color: #888; font-size: 20px; margin-left: 18px; transition: color 0.3s ease; }
.footer-social a:hover { color: var(--color-gold); }
@media (max-width: 991px) {
    .footer-top-row, .footer-bottom-row { flex-direction: column; text-align: center !important; gap: 30px; }
    .footer-esrb, .footer-social, .footer-logo-left { text-align: center; }
    .footer-social a { margin: 0 10px; }
}

/* =========================================
   RANKINGS MENU (BOTÕES DO TOPO) - CORRIGIDO (Menores)
   ========================================= */
.rankings_menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px; /* Mais próximos */
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #222;
}
.rankings_menu a,
.btn-group.nav-justified .btn {
    background: rgba(15, 15, 15, 0.8) !important;
    border: 1px solid #333 !important;
    color: #888 !important;
    font-family: var(--font-cinzel);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 15px !important; /* DIMINUÍDO DE 12x20 PARA 8x15 */
    font-size: 11px !important; /* LETRA MENOR */
    border-radius: 2px !important;
    transition: all 0.3s ease;
    text-shadow: none !important;
    box-shadow: none !important;
}
.rankings_menu a:hover,
.btn-group.nav-justified .btn:hover {
    color: var(--color-gold) !important;
    border-color: var(--color-gold) !important;
    background: rgba(212, 175, 55, 0.05) !important;
}
.rankings_menu a.active,
.btn-group.nav-justified .btn.active,
.btn-group.nav-justified .btn.btn-primary {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.2), rgba(10, 10, 10, 0.9)) !important;
    color: var(--color-gold) !important;
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) !important;
}

/* =========================================
   FILTRO DE CLASSES (ÍCONES ARCO ÍRIS E ALINHAMENTO)
   ========================================= */

/* Força WebEngine a exibir as classes de forma alinhada */
.content-box-dark center {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
}

/* Ocultar a caixa de seleção feia padrão (caso apareça) */
.rankings-class-selector select, 
.rankings-class-selector .btn { display: none !important; }

/* Bloco principal de cada classe */
a.rankings-class-filter-selection {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 85px !important; /* Espaço fixo pra ninguém ficar torto */
    text-decoration: none !important;
    cursor: pointer !important;
    transition: 0.3s;
    background: transparent !important;
    border: none !important;
}

/* Foto do avatar de classe */
a.rankings-class-filter-selection img {
    width: 45px !important; /* Menor e mais delicado */
    height: 45px !important;
    border-radius: 50% !important; /* Redondo perfeito */
    border: 2px solid #333 !important;
    background-color: #000;
    padding: 2px;
    margin-bottom: 8px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: block !important;
}

/* Hover na fotinha */
a.rankings-class-filter-selection:hover img {
    transform: scale(1.15);
}

/* Efeito de Opacidade quando NÃO está selecionado */
a.rankings-class-filter-grayscale img {
    filter: grayscale(100%) brightness(0.4) !important; /* Deixa escuro e p/b */
    border-color: #222 !important;
    box-shadow: none !important;
}

/* O texto do span que a gente injeta via Javascript */
.c-name {
    font-family: var(--font-montserrat);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    transition: 0.3s;
    display: block;
    width: 100%;
}

.c-name i { margin-right: 3px; font-size: 11px; }

/* Hover no botão todo clareia a imagem msm em grayscale */
a.rankings-class-filter-selection:hover img {
    filter: grayscale(0%) brightness(1) !important;
}


/* Outros Estilos Base */
.content-box-dark table.table { width: 100%; background: rgba(5, 5, 5, 0.8); border: 1px solid #222 !important; border-radius: 4px; overflow: hidden; margin-bottom: 40px; }
.content-box-dark table.table thead th { background: #0a0a0a !important; color: var(--color-gold) !important; font-family: var(--font-cinzel); font-size: 15px; text-transform: uppercase; letter-spacing: 2px; padding: 18px 10px !important; border-bottom: 2px solid var(--color-gold) !important; border-top: none !important; text-align: center; }
.content-box-dark table.table tbody td { padding: 15px 10px !important; border-bottom: 1px solid #1a1a1a !important; border-top: none !important; text-align: center; vertical-align: middle !important; color: #ccc; font-size: 14px; transition: all 0.2s ease; }
.content-box-dark table.table tbody tr:hover td { background: rgba(212, 175, 55, 0.05) !important; color: #fff; }
.content-box-dark table.table tbody td .status-online { color: #00e5ff; text-shadow: 0 0 5px #00e5ff; }
.content-box-dark table.table tbody td .status-offline { color: #c80000; }

html, body { height: 100%; }
body { display: flex; flex-direction: column; }
#main-container { flex: 1; }

.la-hero-section{ position:relative; height:100vh; min-height:600px; overflow:hidden; }
.hero-video{ position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; z-index:0; }
#hero-particles{ position:absolute; top:0; left:0; width:100%; height:100%; z-index:1; }
.hero-overlay{ position:absolute; top:0; left:0; width:100%; height:100%; background:linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); z-index:2; }
.hero-content{ position:relative; z-index:3; }

a[href*="addstats"]{ display:none !important; }
a[href*="resetstats"]{ display:none !important; }
a[href*="reset"]{ display:none !important; }
a[href*="unstick"]{ display:none !important; }
a[href*="clearskilltree"]{ display:none !important; }
a[href*="vote"]{ display:none !important; }
a[href*="addstats"]::parent, a[href*="resetstats"]::parent, a[href*="reset"]::parent, a[href*="unstick"]::parent, a[href*="clearskilltree"]::parent, a[href*="vote"]::parent{ display:none !important; }
.usercp_modules{ display:flex; justify-content:center; gap:40px; flex-wrap:wrap; }