/* RUINES DZ — styles spécifiques à la page d’accueil / dashboard */
/* Dashboard shell — uniquement l'accueil */
.home-dashboard { min-height: 100vh; }
.home-dashboard .dashboard-shell {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    min-height: calc(100vh - 77px);
}
.dashboard-sidebar {
    align-self: stretch;
    padding: 26px 15px;
    background: #0a0f14;
    border-right: 1px solid var(--rdz-line);
}
.sidebar-heading {
    padding: 0 10px;
    margin: 0 0 10px;
    color: #718091;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.45px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 4px 0;
    padding: 11px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #aeb9c4;
    font-size: 12px;
    font-weight: 700;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sidebar-link:hover { background: #151e27; color: white; }
.sidebar-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(216,74,53,.2), rgba(216,74,53,.04));
    border-color: rgba(216,74,53,.32);
}
.sidebar-icon { width: 19px; color: var(--rdz-gold); text-align: center; font-size: 16px; }
.sidebar-divider { height: 1px; margin: 23px 8px; background: var(--rdz-line); }
.sidebar-server-status { display: flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.status-light { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.status-light.is-online { background: #64d68a; box-shadow: 0 0 12px #64d68a66; }
.status-light.is-offline { background: #e06458; }
.sidebar-server-players { padding: 2px 26px 0; color: var(--rdz-muted); font-size: 11px; }
.sidebar-discord {
    display: block;
    margin: 18px 4px 0;
    padding: 10px 8px;
    border: 1px solid #465564;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}
.sidebar-discord:hover { border-color: var(--rdz-accent); background: #151d25; }
.dashboard-main { min-width: 0; padding: 28px clamp(18px, 3vw, 42px) 0; overflow: hidden; }
.dashboard-main > main { width: 100%; }

/* Welcome / hero */
.home-dashboard .hero {
    position: relative;
    overflow: hidden;
    padding: clamp(25px, 4vw, 42px);
    border: 1px solid #344454;
    border-radius: var(--rdz-radius);
    background:
      radial-gradient(ellipse at 100% 0%, rgba(216,74,53,.15), transparent 40%),
      linear-gradient(120deg, #1c2b36 0%, #151c24 65%, #111820 100%);
    box-shadow: var(--rdz-shadow);
}
.home-dashboard .hero__content { width: 100%; max-width: 900px; }
.home-dashboard .hero h1 { max-width: 760px; margin: 10px 0 16px; font-size: clamp(34px, 4.3vw, 56px); font-weight: 900; letter-spacing: -.9px; }
.home-dashboard .hero h1 span { color: var(--rdz-accent); }
.home-dashboard .hero__slogan { max-width: 620px; margin-bottom: 22px; color: #c0cbd4; font-size: 14px; letter-spacing: .8px; }
.home-dashboard .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home-dashboard .hero-tiktok {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
    padding: 10px 13px;
    border: 1px solid #354453;
    border-radius: 6px;
    background: rgba(8,12,17,.28);
}
.home-dashboard .hero-tiktok-icon { display: grid; place-items: center; width: 28px; height: 28px; color: var(--rdz-gold); }
.home-dashboard .hero-tiktok-icon svg { width: 22px; height: 22px; fill: currentColor; }
.home-dashboard .hero-tiktok-text { display: grid; gap: 2px; }
.home-dashboard .hero-tiktok-text strong { font-size: 11px; letter-spacing: .5px; }
.home-dashboard .hero-tiktok-text small { color: var(--rdz-muted); font-size: 11px; }

/* Statistiques */
.home-dashboard .server-stats-section { padding-top: 25px; padding-bottom: 25px; }
.home-dashboard .server-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.home-dashboard .server-stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px 14px;
    border: 1px solid var(--rdz-line);
    border-radius: 7px;
    background: var(--rdz-panel);
}
.home-dashboard .server-stat-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 7px;
    background: #26323e;
    color: var(--rdz-gold);
    font-size: 21px;
    overflow: hidden;
}
.home-dashboard .server-stat-icon.online, .home-dashboard .server-stat-icon.offline { font-size: 13px; }
.home-dashboard .server-stat-icon.online { color: #6de197; }
.home-dashboard .server-stat-icon.offline { color: #e36a5c; }
.home-dashboard .server-stat-icon img { width: 100%; height: 100%; object-fit: cover; }
.home-dashboard .server-stat-icon.red { color: #ff7666; }
.home-dashboard .server-stat-content { display: flex; flex-direction: column; min-width: 0; }
.home-dashboard .server-stat-content small, .home-dashboard .wipe-countdown-title {
    color: #aab5c2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .65px;
    line-height: 1.4;
}
.home-dashboard .server-stat-content > strong { margin-top: 4px; color: #fff; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.home-dashboard .server-stat-content > span { color: var(--rdz-gold); font-size: 10px; font-weight: 800; }
.home-dashboard .wipe-countdown { display: flex; gap: 6px; margin-top: 6px; }
.home-dashboard .wipe-time-unit { display: grid; text-align: center; }
.home-dashboard .wipe-number { font-size: 16px; line-height: 1.2; }
.home-dashboard .wipe-time-unit span { color: var(--rdz-muted); font-size: 7px; }

/* Actualités : trois cartes PHP existantes */
.home-dashboard .homepage-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: stretch; gap: 14px; }
.home-dashboard .homepage-news-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rdz-line); border-radius: 7px; background: var(--rdz-panel); }
.home-dashboard .homepage-news-card.news-red { border-top: 2px solid var(--rdz-accent); }
.home-dashboard .homepage-news-card.news-green { border-top: 2px solid #5cae7b; }
.home-dashboard .event-news-image { position: relative; display: block; height: 150px; overflow: hidden; background: #202a35; }
.home-dashboard .event-news-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.home-dashboard .event-news-image:hover img { transform: scale(1.04); }
.home-dashboard .news-tag { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 3px; background: rgba(9,13,18,.88); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .8px; }
.home-dashboard .homepage-news-card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px; }
.home-dashboard .homepage-news-clickable { display: block; width: 100%; }
.home-dashboard .homepage-news-clickable h3 { margin: 0 0 9px; color: #f4f6f8; font-size: 16px; }
.home-dashboard .homepage-news-clickable p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; margin-bottom: 14px; color: var(--rdz-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.home-dashboard .changelog-version { display: inline-block; margin-bottom: 7px; color: var(--rdz-gold); font-size: 10px; font-weight: 800; }
.home-dashboard .news-link { margin-top: auto; padding-top: 8px; color: var(--rdz-gold); font-size: 10px; font-weight: 900; letter-spacing: .5px; }
.home-dashboard .event-countdown { display: grid; gap: 3px; margin: 0 0 10px; padding: 9px 10px; border-radius: 5px; background: #111820; }
.home-dashboard .event-countdown small { color: var(--rdz-muted); font-size: 9px; font-weight: 800; }
.home-dashboard .event-countdown strong { color: #fff; font-size: 14px; }
.home-dashboard .event-meta { color: var(--rdz-muted); font-size: 10px; }

/* Classements */
.home-dashboard .survivors-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.home-dashboard .survivor-ranking-card { min-width: 0; overflow: hidden; border: 1px solid var(--rdz-line); border-radius: 7px; background: var(--rdz-panel); }
.home-dashboard .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px; border-bottom: 1px solid var(--rdz-line); }
.home-dashboard .card-head h3 { margin: 0; font-size: 13px; }
.home-dashboard .card-head a { color: var(--rdz-gold); font-size: 9px; font-weight: 900; white-space: nowrap; }
.home-dashboard .ranking-list { padding: 8px 12px; }
.home-dashboard .homepage-ranking-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.055); }
.home-dashboard .homepage-ranking-row:last-child { border-bottom: 0; }
.home-dashboard .ranking-position { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 5px; background: #27323d; color: var(--rdz-gold); font-size: 11px; font-weight: 900; }
.home-dashboard .ranking-avatar { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; object-fit: cover; background: #293542; }
.home-dashboard .ranking-avatar-placeholder { display: grid; place-items: center; color: #fff; font-weight: 900; }
.home-dashboard .ranking-player-name { min-width: 0; overflow: hidden; color: #e5e9ed; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-dashboard .ranking-value { margin-left: auto; color: var(--rdz-gold); font-size: 11px; white-space: nowrap; }
.home-dashboard .ranking-empty { padding: 20px 10px; color: var(--rdz-muted); font-size: 11px; }

/* Soutien */
.home-dashboard .support-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 24px;
    border: 1px solid #354553;
    border-radius: 8px;
    background: linear-gradient(110deg, #1b2933, #141b22);
}
.home-dashboard .support-box > div { display: flex; align-items: flex-start; gap: 15px; }
.home-dashboard .support-badge { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 7px; background: #24372d; font-size: 20px; }
.home-dashboard .support-box h3 { margin: 0 0 8px; font-size: 17px; }
.home-dashboard .support-box p { max-width: 780px; margin: 0; font-size: 11px; line-height: 1.7; }
.home-dashboard .support-box .btn { flex-shrink: 0; }


/* Responsive : accueil uniquement */
@media (max-width: 1250px) {
    .home-dashboard .server-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .home-dashboard .dashboard-shell { grid-template-columns: 190px minmax(0,1fr); }
    .dashboard-sidebar { padding-inline: 10px; }
    .dashboard-main { padding-inline: 18px; }
    .home-dashboard .homepage-news-grid { grid-template-columns: 1fr; }
    .home-dashboard .event-news-image { height: 190px; }
    .home-dashboard .support-box { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 650px) {
    .home-dashboard .dashboard-shell { display: block; }
    .dashboard-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--rdz-line); }
    .dashboard-sidebar .sidebar-heading, .dashboard-sidebar .sidebar-divider, .dashboard-sidebar .sidebar-server-status, .dashboard-sidebar .sidebar-server-players, .dashboard-sidebar .sidebar-discord { grid-column: 1 / -1; }
    .sidebar-heading { margin-top: 4px; }
    .sidebar-link { margin: 0; padding: 9px 7px; font-size: 11px; }
    .dashboard-main { padding: 14px 12px 0; }
    .home-dashboard .hero { padding: 23px 18px; }
    .home-dashboard .hero h1 { font-size: clamp(32px, 9vw, 44px); }
    .home-dashboard .server-stats-grid { gap: 8px; }
    .home-dashboard .server-stat-card { align-items: flex-start; flex-direction: column; gap: 9px; padding: 12px; }
    .home-dashboard .server-stat-content > strong { font-size: 16px; }
    .home-dashboard .survivors-grid { grid-template-columns: 1fr; }
    .home-dashboard .support-box { padding: 17px; }
    .home-dashboard .support-box > div { flex-direction: column; }
}
