/* ========== DESIGN SISTEMA - NECRONS (THE UNDYING) ========== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --necron-green: #0bff01;
    --necron-dark-green: #054d00;
    --necron-silver: #c0c0c0;
    --obsidian: #0a0a0a;
    --green-glow: 0 0 15px rgba(11, 255, 1, 0.4);
    --text-green: #a0ffa0;
    --angle: 0deg;
    /* Para a animação da borda */
}

@keyframes board-glow {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }

    50% {
        filter: hue-rotate(10deg) brightness(1.3);
    }

    100% {
        filter: hue-rotate(0deg) brightness(1);
    }
}

body {
    background-color: #020502;
    color: var(--text-green);
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(11, 255, 1, 0.08) 0%, transparent 70%),
        url('fundonecrons.png');
    background-attachment: fixed;
    background-size: cover;
    cursor: url('../Index/necron.cur'), auto;
}

/* ========== HERO SECTION ========== */
.faction-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 3px solid var(--necron-green);
    box-shadow: 0 5px 30px rgba(0, 255, 0, 0.2);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(2, 5, 2, 0.9)), url('necrons.jpg') center/cover no-repeat;
    z-index: -1;
    filter: grayscale(0.5) contrast(1.2) brightness(0.6);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 15px;
    text-shadow: 0 0 25px var(--necron-green), 0 0 50px #000;
}

/* ========== LORE SECTION (TOMB) ========== */
.section-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.tomb-card {
    background: transparent;
    padding: 0;
    position: relative;
    max-width: 1050px;
    margin: 50px auto;
}

.inner-content {
    background: rgba(5, 15, 5, 0.4);
    backdrop-filter: blur(10px);
    border: 55px solid transparent;
    border-image: url('bordanecron1editada.png') 150 stretch;
    border-image-repeat: round;
    padding: 60px 80px;
    position: relative;
    border-radius: 5px;
    background-clip: padding-box;
    background-image: 
        linear-gradient(rgba(0, 10, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('fundonecrons.png');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 50px rgba(0,255,0,0.2);
}

/* Pseudo-elementos de energia mantidos para efeito extra */
.tomb-card::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10px;
    width: 3px;
    height: 80%;
    background: #00ff41;
    box-shadow: 0 0 15px #00ff41;
    z-index: 5;
}

.section-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--necron-green);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 6px;
}

.description-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: justify;
    color: #a0ffa0;
    letter-spacing: 0.5px;
    position: relative;
    cursor: cell; /* Cursor de "limpeza" ou precisão */
}

/* Efeito de Poeira/Névoa (Dust Overlay) */
.description-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 10, 0.95);
    backdrop-filter: blur(15px);
    transition: mask-image 0.5s ease-out, -webkit-mask-image 0.5s ease-out;
    pointer-events: none;
    z-index: 10;
    
    /* Inicia totalmente coberto */
    -webkit-mask-image: radial-gradient(circle at -100% -100%, transparent 150px, black 200px);
    mask-image: radial-gradient(circle at -100% -100%, transparent 150px, black 200px);
}

/* Quando o mouse entra na área de texto */
.description-text:hover::after {
    background: rgba(10, 20, 10, 0.2);
    backdrop-filter: blur(2px);
    transition: background 5s ease, backdrop-filter 5s ease;
    
    /* O "buraco" na poeira segue o mouse */
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x, -100%) var(--mouse-y, -100%), transparent 80px, black 150px);
    mask-image: radial-gradient(circle at var(--mouse-x, -100%) var(--mouse-y, -100%), transparent 80px, black 150px);
}

/* Letra Capitular Necron (Digital e Fria) */
.description-text::first-letter {
    float: left;
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    line-height: 0.8;
    padding: 10px 20px 5px 0;
    color: var(--necron-green);
    text-shadow: 0 0 15px var(--necron-green);
    font-weight: 900;
}

.description-text strong {
    color: var(--necron-green);
    text-shadow: 0 0 8px rgba(11, 255, 1, 0.5);
}

/* ========== LEGION GALLERY ========== */
.legion-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.necron-card {
    background: transparent;
    border: 30px solid transparent;
    border-image: url('bordasnecron2editada.png') 150 stretch;
    border-image-repeat: round;
    box-shadow: none;
    padding: 0;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.necron-card::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 8px;
    width: 2px;
    height: 70%;
    background: #00ff41;
    box-shadow: 0 0 8px #00ff41;
    opacity: 0.5;
}

.necron-card:hover::before {
    opacity: 1;
}

.necron-card:hover {
    border-color: var(--necron-green);
    box-shadow: 0 0 20px var(--necron-green);
    transform: translateY(-10px);
}

.necron-card img {
    width: calc(100% + 60px);
    margin: -30px;
    height: 350px;
    object-fit: cover;
    filter: brightness(0.9); /* Removido hue-rotate */
}

.necron-card:hover img {
    filter: brightness(1.2);
}

.card-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--necron-green);
    text-align: center;
    padding: 10px;
    margin: 0;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

/* ========== ARSENAL & DEFENSE ========== */
.gauss-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin: 150px auto;
    max-width: 1000px;
}

.gauss-section.reverse {
    flex-direction: column;
    /* Mantemos coluna para ambos */
}

.gauss-img-box {
    width: 100%;
    max-width: 900px;
    border: 35px solid transparent;
    border-image: url('bordasnecron2editada.png') 150 stretch;
    border-image-repeat: round;
    padding: 0;
    background: #000;
    box-shadow: 0 0 50px rgba(11, 255, 1, 0.4);
    position: relative;
    overflow: hidden; 
    border-radius: 15px; /* Arredondamento para seguir a moldura */
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauss-img-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(11, 255, 1, 0.1) 50%, transparent 60%);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(100%);
    }
}

.gauss-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Preenchimento total sem distorção */
    display: block;
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.05); /* "Mergulha" a imagem sob a moldura interna */
}

.gauss-info {
    width: 100%;
}

.gauss-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--necron-green);
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 4px;
    text-shadow: 0 0 15px var(--necron-green);
}

/* ========== THE SILENT KING (LEGACY) ========== */
.legacy-chamber {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('necronsfinal.jpg') center/cover fixed;
    padding: 120px 20px;
    text-align: center;
    border-top: 2px solid var(--necron-green);
}

.chamber-box {
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
}

/* ========== FOOTER & BACK ========== */
.back-btn {
    display: inline-block;
    padding: 18px 50px;
    background: transparent;
    border: 1px solid var(--necron-green);
    color: var(--necron-green);
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.4s;
    margin-top: 40px;
}

.back-btn:hover {
    background: var(--necron-green);
    color: #000;
    box-shadow: 0 0 30px var(--necron-green);
}

/* ========== MOBILE OVERRIDE: THE PROTOCOL OF ADAPTATION ========== */
@media (max-width: 900px) {
    .section-wrapper {
        margin: 40px auto;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 5px;
    }

    /* FIX: Coluna Estreita (Necrons) */
    .inner-content {
        border-width: 20px; /* Reduzido de 55px */
        padding: 30px 15px; /* Padding interno menor */
    }

    .description-text {
        font-size: 1.1rem; /* Mais legível em tela pequena */
        line-height: 1.5;
    }

    .description-text::first-letter {
        font-size: 3.5rem; /* Reduzido de 5rem */
        padding: 5px 10px 0 0;
    }

    /* Borders Sections */
    .necron-card {
        border-width: 15px; /* Reduzido de 30px */
    }

    .necron-card img {
        width: calc(100% + 30px);
        margin: -15px;
        height: 250px;
    }

    .legion-gallery {
        grid-template-columns: 1fr; /* Coluna única */
    }

    .gauss-img-box {
        border-width: 15px; /* Reduzido de 35px */
    }

    .gauss-title {
        font-size: 2rem;
    }

    .gauss-section {
        margin: 60px auto;
        gap: 30px;
    }

    .chamber-box img {
        width: 100%;
        max-width: 250px;
        border-width: 15px;
    }

    /* Back Button */
    .back-btn {
        width: 90%;
        padding: 15px;
        font-size: 0.9rem;
    }
}