/*
 Theme Name:   Stellarium Child
 Theme URI:    http://stellarium.bold-themes.com
 Description:  Stellarium child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     stellarium
 Version:      1.0.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  stellarium-child
*/


/* Theme customization starts here
-------------------------------------------------------------- */

/* ==========================================================================
   N3XUS ENGINE - GOD-TIER ARCHITECTURE (V6.0 - ASYMMETRIC MODULAR)
   ========================================================================== */

/* --- 1. NUKE PROTOCOL : CIBLÉ SUR LE CONTENU --- */
body.single-post .btContentWrap,
body.single-post .btContentWrap .btContentHolder,
body.single-post .btContentWrap .btContent,
body.single-post .btContentWrap .port {
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
}

body.single-post aside.btSidebar { display: none !important; }

body.single-post .mainHeader {
    position: absolute !important;
    top: 0; left: 0; right: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 9999 !important; 
}

body.single-post .mainHeader nav ul li a,
body.single-post .mainHeader .logo span {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

/* --- 1.5 ABSOLUTE FULL-BLEED OVERRIDE (ANTI-BOXED & ANTI-GAP) --- */

/* Tue les marges natives du navigateur et force le fond sombre */
html, body.single-post {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #120624 !important;
}

/* Destruction totale du mode Boxed de BoldThemes */
body.single-post.btBoxed .btPageWrap,
body.single-post .btPageWrap,
body.single-post .btSiteFooter {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Destruction de la bande blanche (Espace réservé au Header natif) */
body.single-post .btContentWrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Blindage du Wrapper N3XUS pour forcer l'expansion */
.nx-system-override {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 0 !important;
}

/* --- 2. LE WRAPPER N3XUS --- */
.nx-system-override {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #120624;
    overflow-x: hidden;
}

/* --- 3. THE HERO (Parallax & Spatial Hierarchy) --- */
.nx-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px; /* Un peu plus d'air pour l'Extrait */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.nx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Le vrai bouclier DarkSkin : assombrit le haut pour le menu, protège le texte, et fusionne avec le fond de la page en bas */
    background: linear-gradient(180deg, rgba(18,6,36,0.6) 0%, rgba(18,6,36,0.7) 60%, #120624 100%);
    z-index: 1;
    pointer-events: none; /* Sécurité absolue : empêche l'overlay de bloquer les clics sur le menu ou les catégories */
}

.nx-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px; /* Élargi pour l'extrait */
    padding: 0 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cluster Supérieur (Catégories + Titre + Extrait) */
.nx-hero-main-cluster {
    margin-bottom: 40px;
}

/* Catégories multiples séparées */
.nx-categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.nx-cat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(178, 102, 255, 0.4);
    backdrop-filter: blur(10px);
    color: #fff !important;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nx-cat-badge:hover {
    background: #b266ff;
    border-color: #b266ff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(178, 102, 255, 0.5);
}

/* Titre */
.nx-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: #fff;
    margin: 0 0 20px 0;
    font-weight: 300;
    text-shadow: 0 5px 25px rgba(0,0,0,0.9);
    line-height: 1.1;
    font-family: "Philosopher", serif; /* Typographie native ésotérique */
}

/* Extrait (L'ajout premium) */
.nx-excerpt {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 750px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    font-family: "PT Sans", sans-serif;
}

/* Cluster Inférieur (Meta) séparé visuellement */
.nx-meta-wrapper {
    display: inline-block;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nx-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nx-meta a {
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nx-meta a:hover {
    color: #b266ff;
}

/* --- 4. LA MATRICE (Grid 2 Colonnes) --- */
.nx-grid {
    display: grid;
    /* Ratio optimal : Colonne de lecture extensible / Sidebar fixe */
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 40px;
    max-width: 1300px; /* Réduit pour garder une longueur de ligne lisible */
    margin: -150px auto 100px;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* Glassmorphism ciblé (Modulaire) */
.nx-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.nx-content { 
    padding: 60px; 
    align-self: start !important; /* Détache la hauteur de l'article de celle de la sidebar */
}
.nx-widget-box { padding: 35px; margin-bottom: 30px; }

/* Application du Glass aux widgets natifs BoldThemes */
.nx-native-widgets .btBox {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 35px !important;
    margin-bottom: 30px;
}

.nx-sticky {
    position: sticky;
    top: 120px;
}

/* --- 5. N3XUS WIDGETS (Author & Share) --- */
.nx-widget-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Box Auteur */
.nx-author-widget {
    text-align: center;
}
.nx-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(178, 102, 255, 0.4);
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nx-author-widget:hover .nx-author-avatar img {
    transform: scale(1.1) translateY(-5px);
    border-color: #b266ff;
    box-shadow: 0 15px 35px rgba(178, 102, 255, 0.5);
}
.nx-author-bio {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.nx-author-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    color: #b266ff;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(178, 102, 255, 0.3);
    transition: all 0.3s ease;
}
.nx-author-link:hover {
    background: #b266ff;
    color: #fff;
    box-shadow: 0 5px 15px rgba(178, 102, 255, 0.4);
}

/* Box Partage Horizontal */
.nx-horizontal-share {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
}

.nx-social-btn {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    font-family: "Philosopher", sans-serif;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.nx-btn-icon { position: relative; z-index: 2; transition: transform 0.3s ease; }

.nx-social-btn:hover {
    color: #fff;
    background: #b266ff;
    border-color: #b266ff;
    transform: translateY(-6px) scale(1.15);
    box-shadow: 0 10px 25px rgba(178, 102, 255, 0.4), 0 0 15px rgba(178, 102, 255, 0.6);
}

.nx-social-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.8);
    opacity: 0;
    z-index: 1;
}

.nx-social-btn:hover::after { animation: nx-esoteric-pulse 1.5s infinite alternate; }

@keyframes nx-esoteric-pulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    100% { transform: scale(1.05); opacity: 0; }
}

/* --- 6. TYPOGRAPHIE ARTICLE --- */
.nx-typography { color: #d8cde3; font-size: 1.15rem; line-height: 1.9; }
.nx-typography h2, .nx-typography h3 { color: #fff; margin-top: 2.5em; margin-bottom: 1em; font-weight: 400; }
.nx-typography img { border-radius: 12px; margin: 30px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.nx-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 50px 0;
}

/* --- 7. RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .nx-grid { grid-template-columns: 1fr; margin-top: -80px; }
    .nx-content { padding: 30px; }
}
@media (max-width: 600px) {
    .nx-content { padding: 20px; }
}

/* ==========================================================================
   N3XUS ENGINE - GOD-TIER COMMENTS & SPACING (PATCH V2)
   ========================================================================== */

/* --- 1. DESTRUCTION DE L'ESPACE VIDE (GAP ANNIHILATION) --- */
.nx-typography > *:last-child {
    margin-bottom: 0 !important; /* Tue la marge invisible du dernier paragraphe de l'article */
}

.nx-divider {
    margin: 20px 0 !important; /* Écrasement total de la marge du séparateur */
}

.nx-comments {
    margin-top: 0 !important;
}

/* Boldthemes injecte un espace mort colossal, on le rase */
.nx-comments .bt-comments-box {
    margin-top: 0 !important;
    padding-top: 0 !important; /* Rabaissé à zéro */
}

/* --- 2. TYPOGRAPHIE DU TITRE --- */
.nx-comments .bt-comments-box h3,
.nx-comments .bt-comments-box .comment-respond h3 {
    font-size: 1.1rem !important;
    color: #fff !important;
    letter-spacing: 3px !important;
    font-weight: 300 !important;
    border-bottom: none !important; /* 🔥 LE TRAIT EN DOUBLE EST DÉTRUIT ICI 🔥 */
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

/* --- 3. LES CHAMPS TEXTE (Hardware Accelerated Glassmorphism) --- */
.nx-comments .bt-comments-box input[type="text"],
.nx-comments .bt-comments-box input[type="email"],
.nx-comments .bt-comments-box input[type="url"],
.nx-comments .bt-comments-box textarea {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    width: 100% !important;
    font-family: "PT Sans", sans-serif !important;
    font-size: 1rem !important;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2) !important;
    /* Transition physique hyper-fluide */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform: translateZ(0); /* Force le GPU */
}

/* Effet Magnétique au Focus */
.nx-comments .bt-comments-box input[type="text"]:focus,
.nx-comments .bt-comments-box input[type="email"]:focus,
.nx-comments .bt-comments-box input[type="url"]:focus,
.nx-comments .bt-comments-box textarea:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #b266ff !important;
    /* Lévitation du champ de texte */
    transform: translateY(-4px) !important;
    /* Glow interne et externe */
    box-shadow: 0 10px 20px rgba(178, 102, 255, 0.2), inset 0 2px 5px rgba(0,0,0,0.1) !important;
    outline: none !important;
}

/* Placeholder élégant */
.nx-comments .bt-comments-box input::placeholder,
.nx-comments .bt-comments-box textarea::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

/* --- 4. LE BOUTON DE SOUMISSION (God-Tier Pulse) --- */
.nx-comments .bt-comments-box input[type="submit"],
.nx-comments .bt-comments-box .btCommentSubmit {
    background: rgba(178, 102, 255, 0.1) !important;
    border: 1px solid rgba(178, 102, 255, 0.5) !important;
    color: #b266ff !important;
    border-radius: 30px !important;
    padding: 12px 35px !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: none !important;
    /* Transition Magnétique */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Survol : Lévitation et Plasma Violet */
.nx-comments .bt-comments-box input[type="submit"]:hover,
.nx-comments .bt-comments-box .btCommentSubmit:hover {
    background: #b266ff !important;
    color: #fff !important;
    border-color: #b266ff !important;
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 12px 25px rgba(178, 102, 255, 0.5) !important;
}

/* Enlève la box par défaut de Boldthemes autour des labels */
.nx-comments .bt-comments-box .logged-in-as {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
}

.nx-comments .bt-comments-box .logged-in-as a {
    color: #b266ff !important;
    font-weight: 600 !important;
}
/* ==========================================================================
   N3XUS AD ENGINE - SIDEBAR STYLING (GPU ACCELERATED)
   ========================================================================== */

.nx-ad-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 20px !important;
    text-align: center;
}

/* Ligne d'énergie plasma au top de la box publicitaire */
.nx-ad-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(178, 102, 255, 0.6), transparent);
    z-index: 1;
}

.nx-ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 15px 0;
    font-weight: 600;
}

/* On écrase les marges par défaut du shortcode pour un fit parfait dans la box */
.nx-ad-widget .n3x-ad-wrapper {
    margin: 0 !important;
    width: 100%;
}

.nx-ad-widget img.n3x-sponsor-img {
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nx-ad-widget:hover img.n3x-sponsor-img {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}
/* --- 1.8 NUKE PROTOCOL : DESTRUCTION DES METADATAS NATIVES --- */
/* On masque définitivement la ligne Date/Auteur, y compris le wrapper nx-meta */
body.single-post .nx-meta,
body.single-post .btArticleMeta,
body.single-post .headerMeta,
body.single-post .btPostMeta,
body.single-post .btSubTitle,
body.single-post .btArticleHeader .btSuperTitle {
    display: none !important;
}
/* --- 1.9 NUKE PROTOCOL : DESTRUCTION BOLDTHEMES NAVIGATION --- */
.btPrevNextNav { 
    display: none !important; 
}

/* --- 2.0 N3XUS KORE : ANIMATIONS NAVIGATION CLIENT-SIDE --- */
.nx-post-navigation {
    position: relative;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.nx-nav-item {
    cursor: pointer;
    overflow: hidden;
}
.nx-nav-item:hover .nx-nav-img {
    transform: scale(1.15) !important;
}
.nx-nav-item:hover .nx-nav-title {
    color: #b892ff !important; 
}

/* Mobile */
@media (max-width: 768px) {
    .nx-post-navigation {
        flex-direction: column !important;
        gap: 25px !important;
        padding: 20px !important;
    }
    .nx-nav-next {
        justify-content: flex-start !important;
        text-align: left !important;
        flex-direction: row-reverse !important;
    }
}