/* ===== Homepage — InfernoWoW ===== */

/* ── Widen the Bootstrap container on homepage only ── */
.section-page > .container {
    max-width: 1700px !important;
    width: 96% !important;
}

/* ── Ember/flame canvas overlay ── */
/* Homepage embers are handled by the theme template - hide these duplicates */
#hp-embers,
#hp-flame-top,
#hp-flame-bottom,
#hp-flame-mid {
    display: none;
}

/* ── Container ── */
.hp-container {
    width: 100%;
    padding: 0 2.5%;
}
.hp-content-wrap {
    padding: 1.5rem 0 3rem;
}

/* ── Section header ── */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.0rem;
    font-weight: 700;
    color: #d4962a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    background: linear-gradient(180deg, #1e0e04 0%, #120804 100%);
    border: 1px solid #4a2510;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    text-shadow: 0 0 10px rgba(210,130,20,0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #c8922a;
    box-shadow: 0 0 6px rgba(200,140,40,0.8);
    flex-shrink: 0;
}

/* ── Fire card ── */
.fire-card {
    background: linear-gradient(180deg, #150b04 0%, #0e0703 100%);
    border: 1px solid #3a1e0a;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 20px rgba(100,40,5,0.2), inset 0 0 30px rgba(0,0,0,0.3);
}
.hp-card-fixed {
    height: 660px;
}
.fire-card-plain {
    background: linear-gradient(180deg, #150b04 0%, #0e0703 100%);
    border: 1px solid #3a1e0a;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(100,40,5,0.2), inset 0 0 30px rgba(0,0,0,0.3);
}
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #3a1e0a 20%, #7a4010 50%, #3a1e0a 80%, transparent 100%);
    margin: 0;
}

/* ── Hype row ── */

.hype-image-box {
    height: 420px;
    border-radius: 4px;
    border: 1px solid #4a2510;
    overflow: hidden;
    position: relative;
    background: #0e0400;
}
.hype-image-box img {
    width: 100%; height: 100%;
    object-fit: fill;
    opacity: 0.9;
}
.hype-image-box::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(10,4,1,0.4) 0%, transparent 70%);
}

.hype-text-box {
    height: 420px;
    overflow-y: auto;
    background: linear-gradient(180deg, #150b04 0%, #0e0703 100%);
    border: 1px solid #3a1e0a;
    border-radius: 4px;
    padding: 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hype-text-box::-webkit-scrollbar { width: 3px; }
.hype-text-box::-webkit-scrollbar-track { background: #0a0603; }
.hype-text-box::-webkit-scrollbar-thumb { background: #3a1e0a; border-radius: 2px; }
.hype-eyebrow  { font-family: 'Cinzel', serif; font-size: 0.75rem; color: #8a6030; letter-spacing: 0.35em; text-transform: uppercase; margin-bottom: 0.35rem; }
.hype-headline { font-family: 'Cinzel', serif; font-size: 1.35rem; font-weight: 700; color: #e0a840; text-shadow: 0 0 25px rgba(210,130,20,0.5); line-height: 1.3; }
.hype-body     { font-size: 0.85rem; color: #8a7050; margin-top: 0.5rem; line-height: 1.55; }

/* ── Action buttons ── */
.btn-action {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none !important;
    padding: 0.65rem 1.2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: filter .2s, box-shadow .2s;
    cursor: pointer;
    width: 100%;
    border: none;
}
.btn-action:hover { filter: brightness(1.2); }

.btn-action-sq {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none !important;
    padding: 0.6rem 0.4rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: filter .2s, box-shadow .2s;
    cursor: pointer;
    width: 100%;
    border: none;
}
.btn-action-sq:hover { filter: brightness(1.2); }

.btn-join {
    background: linear-gradient(180deg, #2a8a2a 0%, #185018 100%);
    border: 1px solid #3aaa3a !important;
    color: #90ff90 !important;
    box-shadow: 0 0 12px rgba(50,180,50,0.2);
}
.btn-download {
    background: linear-gradient(180deg, #e8a030 0%, #8a5010 100%);
    border: 1px solid #c88020 !important;
    color: #1a0800 !important;
    box-shadow: 0 0 12px rgba(220,140,20,0.25);
}

/* ── Homepage register card ── */
.hp-lrc-card {
    border: 1px solid #4a2510;
    border-radius: 6px;
    background: linear-gradient(180deg, #110804 0%, #0a0400 100%);
    box-shadow: 0 0 30px rgba(180,60,5,.12);
    flex: 1 1 0 !important;
    padding: 0.9rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    text-align: center;
    box-sizing: border-box;
    min-height: 0;
}
.hp-lrc-card .lrc-top-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.hp-lrc-card .lrc-btn {
    width: 100%;
}
.hp-lrc-card .lrc-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle, #3a1a08, #1a0800);
    border: 1px solid #5a2e10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c07030;
    flex-shrink: 0;
}
.hp-lrc-card .lrc-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    color: #6a4020;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}
.hp-lrc-card .lrc-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e0a040;
    text-shadow: 0 0 14px rgba(200,120,10,.35);
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin: 0;
}
.hp-lrc-card .lrc-text {
    font-size: 0.8rem;
    color: #6a4828;
    line-height: 1.6;
    margin: 0;
}
.hp-lrc-card .lrc-divider {
    width: 40px; height: 1px;
    background: linear-gradient(to right, transparent, #5a2e10, transparent);
    flex-shrink: 0;
}
.hp-lrc-card .lrc-btn {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #c07020 0%, #8a4c10 55%, #6a3a0a 100%);
    color: #f5dfa0;
    border: 1px solid #b86818;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    box-shadow: 0 0 12px rgba(180,80,10,.22);
    transition: background .2s, box-shadow .2s, color .2s;
}
.hp-lrc-card .lrc-btn:hover {
    background: linear-gradient(180deg, #d48020 0%, #a05c18 55%, #7a4510 100%);
    box-shadow: 0 0 22px rgba(200,100,10,.4);
    color: #fff8e0;
    text-decoration: none;
}

/* ── News ── */
.news-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a1e0a #0a0603;
    flex: 1;
    min-height: 0;
}
.news-scroll::-webkit-scrollbar       { width: 4px; }
.news-scroll::-webkit-scrollbar-track { background: #0a0603; }
.news-scroll::-webkit-scrollbar-thumb { background: #3a1e0a; border-radius: 2px; }

.news-item         { padding: 0.7rem 0.75rem; transition: background .15s; }
.news-item:hover   { background: rgba(255,255,255,0.015); }

.news-summary      { display: flex; gap: 0.85rem; align-items: flex-start; }
.news-thumb        { width: 130px; height: 90px; flex-shrink: 0; border-radius: 3px; border: 1px solid #3a1e0a; overflow: hidden; background: #1a0a02; }
.news-thumb img    { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity .2s; }
.news-item:hover .news-thumb img { opacity: 1; }

.news-info    { flex: 1; min-width: 0; }
.news-date    { font-size: 0.72rem; color: #5a3818; letter-spacing: 0.1em; margin-bottom: 0.25rem; font-family: 'Cinzel', serif; }
.news-title   { font-family: 'Cinzel', serif; font-size: 0.98rem; font-weight: 600; color: #d4962a; line-height: 1.3; margin-bottom: 0.3rem; }
.news-excerpt { font-size: 0.85rem; color: #7a6040; line-height: 1.45; }

.news-toggle      { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.4rem; font-family: 'Cinzel', serif; font-size: 0.75rem; color: #a06020; cursor: pointer; background: none; border: none; padding: 0; letter-spacing: 0.08em; transition: color .2s; }
.news-toggle:hover { color: #d4962a; }
.news-toggle svg   { transition: transform .25s; }
.news-toggle.open svg { transform: rotate(180deg); }

.news-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease, padding .3s ease;
    opacity: 0;
    font-size: 0.88rem;
    color: #8a7050;
    line-height: 1.6;
}
.news-expanded.open {
    max-height: 600px;
    opacity: 1;
    padding: 0.8rem 0 0;
    border-top: 1px solid #2a1408;
    margin-top: 0.6rem;
}
.news-expanded p              { margin-bottom: 0.6rem; }
.news-expanded p:last-child   { margin-bottom: 0; }

/* ── Changelog ── */
.changelog-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a1e0a #0a0603;
    padding: 0.7rem 0.75rem;
    flex: 1;
    min-height: 0;
}
.changelog-scroll::-webkit-scrollbar       { width: 4px; }
.changelog-scroll::-webkit-scrollbar-track { background: #0a0603; }
.changelog-scroll::-webkit-scrollbar-thumb { background: #3a1e0a; border-radius: 2px; }

.changelog-entry  { margin-bottom: 0.9rem; }
.changelog-version { font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 700; color: #c8922a; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.ver-tag          { font-size: 0.68rem; padding: 0.1rem 0.45rem; background: rgba(200,140,40,0.12); border: 1px solid #4a2810; border-radius: 10px; color: #9a5828; letter-spacing: 0.08em; }
.changelog-date   { font-size: 0.68rem; color: #4a2e14; margin-left: auto; font-family: 'Cinzel', serif; }

ul.cl-list        { list-style: none; padding: 0; margin: 0; }
ul.cl-list li     { font-size: 0.83rem; color: #8a7050; padding: 0.22rem 0 0.22rem 1rem; position: relative; border-bottom: 1px solid #160d06; line-height: 1.4; }
ul.cl-list li::before { content: '›'; position: absolute; left: 0; color: #6a3a10; }
ul.cl-list li:last-child { border-bottom: none; }

.cl-d { height: 1px; background: linear-gradient(90deg, transparent, #2a1408 30%, #2a1408 70%, transparent); margin: 0.7rem 0; }

.cl-badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 0.75rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.6; margin-right: 0.25rem; vertical-align: middle; flex-shrink: 0; }
.cl-buff  { background: #2d7a2d; }
.cl-nerf  { background: #8a2525; }
.cl-fix      { background: #25508a; }
.cl-new      { background: #623a9e; }
.cl-reworked { background: #7a4a00; }

.cl-readmore       { display: inline-flex; align-items: center; gap: 0.3rem; font-family: 'Cinzel', serif; font-size: 0.72rem; color: #a06020; cursor: pointer; background: none; border: none; padding: 0.35rem 1rem 0.4rem; letter-spacing: 0.06em; transition: color .2s; }
.cl-readmore:hover  { color: #d4962a; }
.cl-readmore svg    { transition: transform .25s; flex-shrink: 0; }
.cl-readmore.open svg { transform: rotate(180deg); }

/* ── Server Status ── */
.status-block  { padding: 0.85rem 1rem; }
.status-realm  { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; }
.status-realm + .status-realm { border-top: 1px solid #1a0e06; }
.realm-name    { font-family: 'Cinzel', serif; font-size: 0.9rem; color: #c8a060; }
.realm-sub     { font-size: 0.75rem; color: #5a3a18; margin-top: 0.1rem; }

.status-pill        { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.18rem 0.55rem; border-radius: 10px; display: flex; align-items: center; gap: 0.35rem; font-family: 'Cinzel', serif; }
.status-pill.online { background: rgba(50,160,50,0.13); color: #60c060; border: 1px solid rgba(50,140,50,0.35); }
.status-pill.offline{ background: rgba(160,30,30,0.13); color: #c05050; border: 1px solid rgba(140,30,30,0.35); }

.status-dot         { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online  { background: #40c040; box-shadow: 0 0 6px rgba(60,200,60,0.8); animation: hp-pulse-green 2s ease-in-out infinite; }
.status-dot.offline { background: #c04040; }

.players-block  { text-align: center; margin: 0.7rem 0 0; padding: 0.6rem; background: rgba(0,0,0,0.2); border: 1px solid #1e0f06; border-radius: 3px; }
.players-num    { font-family: 'Cinzel', serif; font-size: 1.9rem; font-weight: 700; color: #d4962a; line-height: 1; }
.players-label  { font-size: 0.7rem; color: #5a3818; letter-spacing: 0.15em; text-transform: uppercase; font-family: 'Cinzel', serif; margin-top: 0.15rem; }

/* ── Faction bar ── */
.faction-bar-wrap { padding: 0.55rem 1rem 0.9rem; }
.faction-labels   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.32rem; }
.faction-horde    { font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 600; color: #cc3838; letter-spacing: 0.06em; }
.faction-alliance { font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 600; color: #3878d0; letter-spacing: 0.06em; }
.faction-bar      { height: 5px; border-radius: 3px; overflow: hidden; display: flex; border: 1px solid #1e0f06; box-shadow: 0 0 6px rgba(0,0,0,0.5); }
.faction-bar-horde    { background: linear-gradient(90deg, #6a0a0a, #cc3838); height: 100%; transition: width .5s ease; }
.faction-bar-alliance { background: linear-gradient(90deg, #1a50b0, #3888e8); height: 100%; transition: width .5s ease; }

/* ── Discord ── */
.discord-block   { padding: 0.8rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.discord-logo    { width: 26px; height: 20px; flex-shrink: 0; }
.discord-server  { font-family: 'Cinzel', serif; font-size: 0.9rem; font-weight: 600; color: #c8a060; }
.discord-counts  { display: flex; align-items: center; gap: 0.9rem; }
.discord-count   { font-size: 0.72rem; color: #5a3818; letter-spacing: 0.06em; display: flex; align-items: center; gap: 0.28rem; }
.discord-dot-on  { width: 6px; height: 6px; border-radius: 50%; background: #40c040; flex-shrink: 0; }
.discord-dot-off { width: 6px; height: 6px; border-radius: 50%; background: #3a3a5a; flex-shrink: 0; }
.btn-discord     { font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; padding: 0.4rem 1rem; border-radius: 4px; background: linear-gradient(180deg, #5865F2 0%, #3b45c7 100%); border: 1px solid #7984f8 !important; color: #fff !important; display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none !important; transition: filter .2s; }
.btn-discord:hover { filter: brightness(1.15); }

.discord-invite-img {
    width: 184px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ── Ragnaros artwork ── */
.ragnaros-box { width: 100%; border-radius: 4px; border: 1px solid #3a1e0a; overflow: hidden; position: relative; background: #0e0400; }
.ragnaros-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ragnaros-box::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,4,0,0.6) 0%, transparent 50%),
                linear-gradient(to bottom, rgba(10,4,0,0.3) 0%, transparent 40%);
    pointer-events: none;
}

/* ── text-wrap: wrap — annule le text-wrap: balance global du thème ── */
/* même fix que le tooltip du talent calculator */
.hype-eyebrow, .hype-headline, .hype-body,
.news-date, .news-title, .news-excerpt, .news-expanded,
.changelog-version, ul.cl-list li {
    text-wrap: wrap !important;
    white-space: normal !important;
}

/* ── Tablet ── */
@media (max-width: 991px) {
    .hp-cta-stack {
        height: auto !important;
    }
    .hp-lrc-card {
        flex: none !important;
        min-height: 180px;
    }
    .hype-image-box,
    .hype-text-box {
        height: 300px;
    }
    .ragnaros-box {
        min-height: 200px;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .hype-image-box,
    .hype-text-box {
        height: auto;
        min-height: 200px;
    }
    .hype-image-box img {
        object-fit: cover;
    }
    .hype-headline {
        font-size: 1rem;
    }
    .hype-body {
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    .fire-card {
        height: auto !important;
    }
    .news-scroll,
    .changelog-scroll {
        max-height: 450px;
    }
    .news-thumb {
        width: 80px;
        height: 60px;
    }
    .news-title {
        font-size: 0.85rem;
    }
    .news-excerpt {
        font-size: 0.78rem;
    }
    .players-num {
        font-size: 1.5rem;
    }
    .ragnaros-box {
        min-height: 150px;
    }
}

/* ── Small phones ── */
@media (max-width: 576px) {
    .hype-image-box {
        min-height: 160px;
    }
    .hype-text-box {
        padding: 0.5rem 0.6rem;
        min-height: 160px;
    }
    .hype-headline {
        font-size: 0.9rem;
    }
    .hype-eyebrow {
        font-size: 0.6rem;
    }
    .news-thumb {
        width: 60px;
        height: 45px;
    }
    .news-title {
        font-size: 0.8rem;
    }
    .hp-lrc-card {
        min-height: 160px;
        padding: 0.6rem 0.8rem 0.8rem;
    }
    .hp-lrc-card .lrc-title {
        font-size: 1rem;
    }
    .hp-lrc-card .lrc-icon {
        width: 40px;
        height: 40px;
    }
    .ragnaros-box {
        min-height: 120px;
    }
}

/* ── Tiny phones ── */
@media (max-width: 400px) {
    .hp-content-wrap { padding: 0.75rem 0 1.5rem; }
    .section-title { font-size: 0.7rem; padding: 0.3rem 0.5rem; letter-spacing: 0.1em; }
    .hype-headline { font-size: 0.8rem; }
    .hype-eyebrow { font-size: 0.55rem; letter-spacing: 0.2em; }
    .hype-body { font-size: 0.75rem; }
    .hp-lrc-card { padding: 0.4rem 0.5rem 0.6rem; min-height: 130px; }
    .hp-lrc-card .lrc-title { font-size: 0.85rem; }
    .hp-lrc-card .lrc-text { font-size: 0.7rem; }
    .hp-lrc-card .lrc-btn { font-size: 0.7rem; padding: 0.4rem 0.5rem; }
    .hp-lrc-card .lrc-icon { width: 32px; height: 32px; }
    .hp-lrc-card .lrc-icon svg { width: 18px; height: 18px; }
    .news-thumb { width: 48px; height: 36px; }
    .news-title { font-size: 0.75rem; }
    .news-date { font-size: 0.6rem; }
    .news-excerpt { font-size: 0.72rem; }
    .news-toggle { font-size: 0.65rem; }
    .players-num { font-size: 1.2rem; }
    .realm-name { font-size: 0.8rem; }
    .discord-server { font-size: 0.75rem; }
    .discord-count { font-size: 0.65rem; }
    .discord-invite-img { width: 140px; }
    .ragnaros-box { min-height: 80px; }
}

/* ── Keyframes ── */
@keyframes hp-pulse-green {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}
