/* =============================================================
   index.css — Estilos de la página principal (Home)
   Ghost's of Lineage II
   ============================================================= */

/* --- Countdown --- */
#countdown {
    color: aliceblue;
}

/* ---------------------------------------------------------------
   MÓDULO DE RANKING / ESTADÍSTICAS
--------------------------------------------------------------- */
.rankings-section {
    padding: 50px 0;
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(10,9,4,0.85) 50%, rgba(0,0,0,0) 100%);
}
.rankings-section .why__title {
    text-align: center;
    margin-bottom: 22px;
}
.rankings-section .why__title h1 {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    color: #ecca7d;
    font-size: 30px;
    letter-spacing: 0.04em;
    text-align: center;
    text-shadow: 0 2px 12px rgba(199,154,69,0.35);
    margin: 0;
}
.rankings-section .why__title .rk-tagline {
    font-family: 'Cinzel', serif;
    color: #a98f5e;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Activity tab — 24h online chart */
.chart-caption {
    font-family: 'Cinzel', serif;
    color: #c79a45;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-wrap { position: relative; height: 300px; }

.stats-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(43,33,20,0.92), rgba(21,17,11,0.95));
    border: 1px solid rgba(124,96,42,0.45);
    border-radius: 10px;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.85), 0 0 0 1px rgba(236,202,125,0.04) inset;
    overflow: hidden;
}

.stats-tabs {
    display: flex;
    flex-wrap: wrap;
    background: rgba(10,9,4,0.55);
    border-bottom: 1px solid rgba(124,96,42,0.35);
}

.stats-tab {
    flex: 1;
    min-width: 120px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #a98f5e;
    border-bottom: 2px solid transparent;
    transition: all 0.18s;
}
.stats-tab i             { margin-right: 7px; font-size: 13px; }
.stats-tab:hover         { color: #ddca9f; background: rgba(199,154,69,0.07); }
.stats-tab.active        { color: #ecca7d; background: rgba(199,154,69,0.12); border-bottom-color: #c79a45; }

.stats-content           { padding: 18px 20px 22px; display: none; overflow-x: auto; }
.stats-content.active    { display: block; animation: fadeIn 0.4s; }

.stats-table             { width: 100%; border-collapse: collapse; text-align: left; min-width: 420px; }
.stats-table th          { font-family: 'Cinzel', serif; color: #c79a45; padding: 12px 14px; border-bottom: 1px solid rgba(124,96,42,0.4); text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em; font-weight: 600; }
.stats-table td          { color: #ddca9f; padding: 13px 14px; border-bottom: 1px solid rgba(124,96,42,0.12); font-family: 'EB Garamond', serif; font-size: 16px; }
.stats-table tbody tr        { transition: background 0.15s; }
.stats-table tbody tr:hover td { background: rgba(199,154,69,0.06); }

/* Rank medal badge (top-3 = gold / silver / bronze) */
.rank-cell    { text-align: center; width: 64px; }
.rank-badge   { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; color: #cdb784; background: rgba(10,9,4,0.6); border: 1px solid rgba(124,96,42,0.5); }
.rank-badge.rk1 { color: #2a1d09; background: linear-gradient(180deg,#ecca7d,#c79a45 60%,#7c602a); border-color: #ecca7d; box-shadow: 0 0 16px -3px rgba(236,202,125,0.8); }
.rank-badge.rk2 { color: #1a1a1a; background: linear-gradient(180deg,#e8e8ea,#b9bcc2 60%,#8b8e95); border-color: #e8e8ea; }
.rank-badge.rk3 { color: #2a1206; background: linear-gradient(180deg,#e7a977,#c5763f 60%,#8a4a22); border-color: #e7a977; }

/* Legacy fallback (any table still using the old td.rank-number) */
.rank-number  { color: #c79a45; font-weight: bold; width: 64px; text-align: center; font-size: 16px; font-family: 'JetBrains Mono', monospace; }
.top-1        { color: #ecca7d; text-shadow: 0 0 12px rgba(236,202,125,0.7); }

/* Character + value cells */
.stats-table .name-cell        { font-family: 'Cinzel', serif; font-size: 15px; color: #e9dcbb; }
.stats-table .name-cell .plink { color: #e9dcbb; }
.stat-val       { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #ecca7d; font-size: 15px; }
.stat-val.pk    { color: #ff8a5c; }
.stat-val.time  { color: #7fd4e6; }
.support-likes  { color: #ecca7d; font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 14px; display: inline-block; width: 30px; text-align: center; }

/* ---------------------------------------------------------------
   ESTATUS DEL SERVIDOR
--------------------------------------------------------------- */
.server-status-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    background: rgba(20, 16, 11, 0.8);
    padding: 12px 25px;
    border-radius: 8px;
    border: 1px solid rgba(167, 155, 133, 0.3);
    flex-wrap: wrap;
    max-width: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-label { color: #b0a99a; }

.status-indicator {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    transition: background-color 0.3s ease;
}
.status-indicator.online  { background-color: rgba(76, 175, 80, 0.85); color: white; box-shadow: 0 0 8px rgba(76, 175, 80, 0.5); }
.status-indicator.offline { background-color: rgba(244, 67, 54, 0.85); color: white; box-shadow: 0 0 8px rgba(244, 67, 54, 0.5); }

.status-count { color: #f5deb3; font-size: 18px; text-shadow: 0 0 5px rgba(245, 222, 179, 0.5); }

/* ---------------------------------------------------------------
   BOTÓN DE LIKE / RESPECT
--------------------------------------------------------------- */
.like-btn {
    background: rgba(255, 120, 50, 0.1);
    border: 1px solid rgba(255, 120, 50, 0.35);
    color: #ff9a6b;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.18s ease;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
}
.like-btn i {
    color: #ff7a4d;
    transition: all 0.18s ease;
}
.like-btn:hover {
    background: rgba(255, 120, 50, 0.18);
    color: #ffb38f;
    border-color: rgba(255, 120, 50, 0.6);
    box-shadow: 0 0 16px -3px rgba(255, 120, 50, 0.6);
    transform: translateY(-1px);
}
.like-btn:hover i {
    color: #ff8a5c;
    text-shadow: 0 0 8px rgba(255, 120, 50, 0.8);
    transform: scale(1.1);
}

/* ---------------------------------------------------------------
   LIVE FEED (TICKER DE NOTICIAS)
--------------------------------------------------------------- */
.live-feed-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background: rgba(10, 9, 4, 0.95);
    border: 1px solid rgba(245, 222, 179, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    overflow: hidden;
}

.live-feed-title {
    background: linear-gradient(90deg, rgba(20,16,11,1) 0%, rgba(40,30,20,1) 100%);
    color: #f5deb3;
    padding: 12px 25px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    border-right: 1px solid rgba(245, 222, 179, 0.3);
    z-index: 2;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}

.live-feed-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: tickerSlide 25s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }

.feed-item {
    display: inline-block;
    margin-right: 60px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #e1e1e1;
}

.feed-boss i    { color: #ff4d4d; text-shadow: 0 0 8px rgba(255, 77, 77, 0.8); }
.feed-pvp i     { color: #4CAF50; text-shadow: 0 0 8px rgba(76, 175, 80, 0.8); }
.feed-enchant i { color: #00bcd4; text-shadow: 0 0 8px rgba(0, 188, 212, 0.8); }
.feed-hero i    { color: gold;    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8); }
.feed-gacha i   { color: #ffb43d; text-shadow: 0 0 8px rgba(255, 180, 61, 0.85); }

/* ---------------------------------------------------------------
   ANIMACIONES
--------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ---------------------------------------------------------------
   KEY CIRCLES — FA icon replacement (broken external images)
--------------------------------------------------------------- */
.header .key li span div:nth-child(1) i {
    font-size: 2.4vh;
    color: #1a120a;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* ---------------------------------------------------------------
   WHY NAV ACCORDION — FA icon replacement (broken external images)
--------------------------------------------------------------- */
.game .why .tab_nav li span div i:first-child {
    font-size: 1.8vh;
    margin-right: 2vh;
    opacity: 0.6;
    color: #c4a876;
    transition: opacity 0.5s, color 0.5s;
    flex-shrink: 0;
}
.game .why .tab_nav li.active span div i:first-child,
.game .why .tab_nav li:hover span div i:first-child {
    opacity: 1;
    color: #f5deb3;
    text-shadow: 0 0 6px rgba(245, 222, 179, 0.5);
}

/* ---- RESPONSIVE DESIGN ---- */
@media screen and (max-width: 992px) {
    .stats-container {
        width: 95%;
    }
    .stats-tab {
        min-width: 90px;
        font-size: 12px;
        padding: 12px 8px;
    }
    .live-feed-title {
        padding: 10px 15px;
        font-size: 12px;
        letter-spacing: 1px;
    }
    .server-status-box {
        padding: 10px 15px;
        gap: 12px;
    }
}

@media screen and (max-width: 576px) {
    .live-feed-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .live-feed-title {
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(245, 222, 179, 0.3);
    }
    .stats-tab {
        min-width: 0;
        font-size: 11px;
        padding: 10px 5px;
    }
    .stats-tab i {
        display: none;
    }
    .server-status-box {
        flex-direction: column;
        align-items: center;
        max-width: 90%;
        width: 90%;
        gap: 10px;
    }
    .status-item {
        font-size: 13px;
        width: 100%;
        justify-content: space-between;
    }
    .live-feed-wrapper {
        width: 95%;
    }
}


/* Enlaces a perfiles desde los rankings */
.stats-table a.plink{color:inherit;text-decoration:none;transition:color .15s;}
.stats-table a.plink:hover{color:#f5deb3;text-decoration:underline;}

/* ---- Wipe / launch countdown ---- */
.countdown-label { color: #f5deb3; text-transform: uppercase; letter-spacing: 3px; font-size: 14px; margin-bottom: 10px; text-shadow: 0 0 10px rgba(245,222,179,0.4); }
#countdown { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 18px; }
.cd-box { display: flex; flex-direction: column; align-items: center; background: rgba(10,9,4,0.7); border: 1px solid rgba(116,109,85,0.5); border-radius: 6px; padding: 10px 14px; min-width: 64px; }
.cd-box b { font-size: 30px; color: #fff; font-family: 'Roboto', sans-serif; line-height: 1; }
.cd-box small { font-size: 10px; color: #b0a99a; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.cd-live { color: #4CAF50; font-weight: bold; font-size: 22px; letter-spacing: 2px; text-shadow: 0 0 12px rgba(76,175,80,0.6); }
.cd-live i { font-size: 12px; vertical-align: middle; margin-right: 6px; animation: cdpulse 1.5s infinite; }
@keyframes cdpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
