/* ============================================================
   news.css — Styles de la page /news/ (GF Resurgence)
   Extrait de l'ancien <style> inline de /news/index.php.
   ⚠️ Si un style manque à l'appel (ex: une classe custom utilisée
   dans un vieil article), récupère-le dans /news/index_backup.php
   et ajoute-le en bas de ce fichier.
   ============================================================ */

/* Body */
body {
    background-color: #121212;
    color: #e1e8ed;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* News Header */
.news-header {
    text-align: center;
    color: #000000;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(45deg, #00a8ff, #ffd700);
}

.news-header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    cursor: pointer;
    display: inline-block;
    text-shadow: none;
    transition: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* override global h1 gradient */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
}

/* Footer */
footer {
    background-color: #1f1f1f;
    padding: 20px;
    color: #e1e8ed;
    text-align: center;
}

.footer-links a {
    color: #8899a6;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

footer .copyright {
    font-size: 0.8em;
    margin-top: 10px;
    color: #8899a6;
}

/* News Grid */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ffd700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.news-card.expanded {
    background: rgba(255, 255, 255, 0.2);
}

.news-card.update {
    border-left-color: #00a8ff;
}

.news-card.content {
    border-left-color: #4ecdc4;
}

.news-card.graphics {
    border-left-color: #ff6b6b;
}

.news-header-inner {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.news-icon {
    font-size: 1.4em;
    flex-shrink: 0;
    color: #ffd700;
}

.news-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffd700;
    line-height: 1.3;
}

.news-card.update .news-title {
    color: #00a8ff;
}

.news-card.content .news-title {
    color: #4ecdc4;
}

.news-card.graphics .news-title {
    color: #ff6b6b;
}

.news-date {
    color: #8899a6;
    font-size: 0.8em;
    margin: 2px 0 8px 0;
}

.news-content {
    color: #e1e8ed;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    background: #ffd700;
    color: #0a1f33;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

/* Couleurs par type de badge */
.news-card.badge-goldshop {
    border-left-color: #ffd700;
}

.news-card.badge-new-raid {
    border-left-color: #00a8ff;
}

.news-card.badge-new-quests {
    border-left-color: #4ecdc4;
}

.news-card.badge-balance {
    border-left-color: #f39c12;
}

.news-card.badge-website,
.news-card.badge-launcher {
    border-left-color: #9b59b6;
}

.news-card.badge-localization {
    border-left-color: #1abc9c;
}

.news-card.badge-new-content,
.news-card.badge-enhanced {
    border-left-color: #e74c3c;
}

.news-card.badge-bonus {
    border-left-color: #2ecc71;
}

.news-card.badge-pvp {
    border-left-color: #e74c3c;
}

.news-card.badge-achievements {
    border-left-color: #2ecc71;
}

.news-card.badge-discord {
    border-left-color: #9b59b6;
}

.news-card.badge-gm-event {
    border-left-color: #f1c40f;
}

/* Expanded Content */
.expanded-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.news-card.expanded .expanded-section {
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.feature:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.feature h4 {
    color: #4ecdc4;
    margin-bottom: 8px;
}

/* Dungeon Info & Visual Features */
.dungeon-info,
.visual-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.info-item,
.visual-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.info-item:hover,
.visual-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   NOUVEAU : bouton "Show older updates"
   ============================================================ */
.load-more-wrap {
    text-align: center;
    padding: 0 20px 30px;
}

.load-more-btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.10);
    color: #ffd700;
    font-size: 1em;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: rgba(255, 215, 0, 0.20);
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}
/* ============================================================
   NEWS HERO — bandeau immersif (remplace l'ancien .news-header)
   À coller dans news.css EN REMPLACEMENT des règles .news-header
   et .news-header h1 existantes (ou tout en bas, il gagnera).
   ============================================================ */

.news-header {
    position: relative;
    overflow: hidden;
    text-align: center;

    /* ✅ compense le header fixe du site (65px) + respiration */
    padding: 80px 20px 46px;
    margin-bottom: 30px;

    background: linear-gradient(120deg, #0c2a4d 0%, #16213e 40%, #1a1a2e 100%);
    border-bottom: 1px solid rgba(66, 165, 245, 0.25);
}

/* Halo lumineux animé en fond */
.news-header::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 220%;
    background:
        radial-gradient(circle at 30% 30%, rgba(66, 165, 245, 0.22), transparent 45%),
        radial-gradient(circle at 75% 60%, rgba(255, 215, 0, 0.14), transparent 45%);
    animation: news-glow 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes news-glow {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, 3%) scale(1.08); }
}

/* Petit label au-dessus du titre */
.news-header::after {
    content: '📢 PATCH NOTES';
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.10);
    border: 1px solid rgba(255, 215, 0, 0.28);
}

.news-header h1 {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    line-height: 1.1;

    /* Dégradé bleu → doré sur le texte */
    background: linear-gradient(90deg, #42a5f5, #ffffff 50%, #ffd700) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #42a5f5; /* fallback navigateurs anciens */

    transition: transform 0.25s ease, filter 0.25s ease;
}

.news-header h1:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 18px rgba(66, 165, 245, 0.35));
}

/* Sous-titre (ajouté via le HTML de la page) */
.news-header .news-subtitle {
    position: relative;
    z-index: 1;
    margin: 12px auto 0;
    max-width: 560px;
    color: #b0bec5;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .news-header {
        padding: 68px 16px 34px;
    }
    .news-header h1 {
        font-size: 2rem;
    }
    .news-header .news-subtitle {
        font-size: 0.9rem;
    }
}

/* ============================================================
   MODE LAUNCHER  (body.is-launcher)
   Chargé quand l'URL est /news/?launcher=1
   → menu masqué (le joueur est déjà dans le jeu)
   → hero compact (les patch notes visibles plus vite)
   → pas de padding-top de header puisqu'il n'y a plus de header fixe
   ============================================================ */

/* Cache le header du site (barre de menu) dans le launcher */
body.is-launcher .rune-header {
    display: none;
}

/* Plus de header fixe → on retire le décalage du body */
body.is-launcher {
    padding-top: 0 !important;
}

/* Hero compact */
body.is-launcher .news-header {
    padding: 26px 20px 22px;      /* beaucoup plus court */
    margin-bottom: 18px;
}

body.is-launcher .news-header h1 {
    font-size: 2rem;              /* titre plus mesuré */
}

/* On masque le petit label et le sous-titre pour gagner de la hauteur */
body.is-launcher .news-header::after,
body.is-launcher .news-header .news-subtitle {
    display: none;
}

/* Animation de fond désactivée dans le launcher (plus sobre, moins de CPU) */
body.is-launcher .news-header::before {
    animation: none;
}

/* On peut aussi masquer le footer dans le launcher si tu préfères :
   décommente le bloc ci-dessous.
body.is-launcher .rune-footer {
    display: none;
}
*/