/* ========== DESIGN SISTEMA - ORKS (THE WAAAGH!) ========== */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Gochi+Hand&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --ork-green: #44ad44;
    --ork-rust: #8b4513;
    --ork-metal: #4a4a4a;
    --ork-yellow: #ffd700;
    --ork-red: #cc0000;
    --scrap-glow: 0 0 15px rgba(139, 69, 19, 0.4);
}

body {
    background-color: #1a0f0a;
    color: #d2b48c;
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.1) 0%, transparent 80%),
        url('fundoorks.png');
    background-attachment: fixed;
    background-size: cover;
    cursor: url('../Index/orks.cur'), auto;
}

/* ========== HERO SECTION (SCRAP METAL) ========== */
.faction-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 8px solid var(--ork-rust);
    background: transparent; /* Transparente para não cobrir o hero-bg */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('imagemheaderorks.png') center/cover no-repeat;
    z-index: 0;
    filter: brightness(1.1); /* Ligeiro aumento de brilho para destacar sua arte */
}

.hero-title-box {
    position: relative;
    z-index: 2; /* Garante que o texto fique por cima da imagem */
    text-align: center;
}

.hero-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 8rem;
    color: var(--ork-yellow);
    text-transform: uppercase;
    letter-spacing: 10px;
    text-shadow: 5px 5px 0px var(--ork-red), 8px 8px 0px #000;
    transform: rotate(-3deg);
}

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

.scrap-card {
    background: transparent;
    padding: 0;
    position: relative;
    box-shadow: none;
    margin: 40px auto;
    max-width: 1100px;
}

.inner-content {
    background: rgba(30, 20, 15, 0.4);
    backdrop-filter: blur(4px);
    border: 55px solid transparent;
    border-image: url('bordaork1editada.png') 150 stretch;
    border-image-repeat: round;
    padding: 60px 80px;
    position: relative;
    border-radius: 4px;
    background-clip: padding-box;
    background-image: 
        linear-gradient(rgba(26, 15, 10, 0.5), rgba(26, 15, 10, 0.5)),
        url('fundoorks.png');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

/* Parafusos/Engrenagens mantidos para detalhe extra */
.scrap-card::after {
    content: '⚙';
    position: absolute;
    top: 0;
    right: 0;
    font-size: 20px;
    color: #8b4513;
    transform: rotate(15deg);
    text-shadow: 2px 2px 5px #000;
}

.section-label {
    font-family: 'Permanent Marker', cursive;
    color: var(--ork-red);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
}

.lore-text {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.45rem; /* Orks falam ALTO, mas precisam caber na moldura */
    line-height: 1.5;
    text-align: justify;
    color: #f5deb3;
    letter-spacing: 0.5px;
}

/* Letra Capitular Ork (Bruta e Vermelha) */
.lore-text::first-letter {
    float: left;
    font-family: 'Permanent Marker', cursive;
    font-size: 5rem;
    line-height: 0.8;
    padding: 10px 15px 0 0;
    color: var(--ork-red);
    transform: rotate(-10deg);
    filter: drop-shadow(3px 3px 0px #000);
}

.lore-text strong {
    color: var(--ork-yellow);
    text-shadow: 1px 1px 2px #000;
}

/* ========== UNITS GALLERY ========== */
.units-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.ork-card {
    background: transparent;
    border: 30px solid transparent;
    border-image: url('bordaork2editada.png') 150 stretch;
    border-image-repeat: round;
    padding: 0;
    transition: all 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ork-card:hover {
    border-color: var(--ork-yellow);
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.ork-card img {
    width: calc(100% + 60px);
    margin: -30px;
    height: 350px;
    object-fit: cover;
}

.card-label {
    text-align: center;
    padding: 10px;
    margin: 0;
    font-family: 'Permanent Marker', cursive;
    color: var(--ork-yellow);
    background: rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
}

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

.dakka-section.reverse {
    flex-direction: column;
}

.dakka-img-box {
    width: 100%;
    max-width: 900px;
    border: 35px solid transparent;
    border-image: url('bordaork2editada.png') 150 stretch;
    border-image-repeat: round;
    padding: 0;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(139, 69, 19, 0.5);
}

.dakka-img-box img {
    width: calc(100% + 70px);
    margin: -35px;
    height: auto;
    display: block;
}

.dakka-info {
    width: 100%;
}

.dakka-title {
    font-family: 'Permanent Marker', cursive;
    color: var(--ork-red);
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 3px 3px 0 #000;
}

/* ========== THE VAAAGH! (LEGACY) ========== */
.waaagh-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('orksfinal.jpg') center/cover fixed;
    padding: 100px 20px;
    text-align: center;
    border-top: 10px solid var(--ork-red);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

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

/* ========== BUTTONS ========== */
.back-btn {
    display: inline-block;
    padding: 15px 45px;
    background: var(--ork-red);
    color: #fff;
    font-family: 'Permanent Marker', cursive;
    text-decoration: none;
    font-size: 1.5rem;
    transition: 0.2s;
    margin-top: 40px;
    border: 4px solid #000;
}

.back-btn:hover {
    background: var(--ork-yellow);
    color: #000;
    transform: scale(1.1);
}

/* ========== MOBILE RULES: ORK ADAPTATION ========== */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }

    .section-wrapper {
        margin: 30px auto;
        padding: 0 10px;
    }

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

    .lore-text {
        font-size: 1.1rem; /* Mais legível */
        line-height: 1.4;
    }

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

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

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

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

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

    .dakka-img-box img {
        width: calc(100% + 40px);
        margin: -20px;
    }

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

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

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

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

/* ========== EFFECTS: EMBERS (WAAGH! PARTICLES) ========== */
.embers-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: transparent;
    overflow: hidden;
}

.ember {
    position: absolute;
    bottom: -50px;
    color: var(--ork-yellow);
    opacity: 0;
    animation: rise infinite linear;
    filter: drop-shadow(0 0 3px var(--ork-red));
    font-size: 18px; /* Reduzido levemente o tamanho médio */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Símbolos base por padrão */
.ember::before {
    content: '⚙';
}

@keyframes rise {
    0% {
        transform: translateY(0) rotate(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
        filter: brightness(1.2);
    }

    80% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) rotate(720deg) scale(1.5);
        opacity: 0;
    }
}

/* Partículas mais fortes e variadas (ENGRENAGENS, DENTES, FERRAMENTAS) */
.ember:nth-child(1) { left: 5%; font-size: 24px; animation-duration: 3s; animation-delay: 0s; }
.ember:nth-child(1)::before { content: '⚙'; }

.ember:nth-child(2) { left: 12%; font-size: 30px; animation-duration: 4.5s; animation-delay: 1.2s; }
.ember:nth-child(2)::before { content: '🔧'; }

.ember:nth-child(3) { left: 18%; font-size: 20px; animation-duration: 3.8s; animation-delay: 0.5s; color: var(--ork-red); }
.ember:nth-child(3)::before { content: '🦷'; } /* TEEF! */

.ember:nth-child(4) { left: 25%; font-size: 35px; animation-duration: 5.2s; animation-delay: 2.1s; opacity: 0.6; }
.ember:nth-child(4)::before { content: '⚙'; }

.ember:nth-child(5) { left: 32%; font-size: 22px; animation-duration: 4s; animation-delay: 0.8s; }
.ember:nth-child(5)::before { content: '🔩'; }

.ember:nth-child(6) { left: 38%; font-size: 28px; animation-duration: 3.5s; animation-delay: 1.5s; color: var(--ork-red); }
.ember:nth-child(6)::before { content: '🦷'; }

.ember:nth-child(7) { left: 45%; font-size: 32px; animation-duration: 4.8s; animation-delay: 0.2s; }
.ember:nth-child(7)::before { content: '🛠'; }

.ember:nth-child(8) { left: 52%; font-size: 18px; animation-duration: 3.2s; animation-delay: 2.5s; }
.ember:nth-child(8)::before { content: '⚙'; }

.ember:nth-child(9) { left: 58%; font-size: 38px; animation-duration: 5.5s; animation-delay: 1.1s; }
.ember:nth-child(9)::before { content: '🔧'; }

.ember:nth-child(10) { left: 65%; font-size: 24px; animation-duration: 4.2s; animation-delay: 0.6s; }
.ember:nth-child(10)::before { content: '🔩'; }

.ember:nth-child(11) { left: 72%; font-size: 26px; animation-duration: 3.9s; animation-delay: 1.8s; }
.ember:nth-child(11)::before { content: '⚙'; }

.ember:nth-child(12) { left: 78%; font-size: 20px; animation-duration: 4.6s; animation-delay: 0.3s; color: var(--ork-red); }
.ember:nth-child(12)::before { content: '🦷'; }

.ember:nth-child(13) { left: 85%; font-size: 34px; animation-duration: 5s; animation-delay: 2.8s; }
.ember:nth-child(13)::before { content: '🔧'; }

.ember:nth-child(14) { left: 92%; font-size: 22px; animation-duration: 3.7s; animation-delay: 0.9s; }
.ember:nth-child(14)::before { content: '🔩'; }

.ember:nth-child(15) { left: 3%; font-size: 28px; animation-duration: 4.1s; animation-delay: 1.4s; }
.ember:nth-child(15)::before { content: '⚙'; }

.ember:nth-child(16) { left: 97%; font-size: 24px; animation-duration: 3.3s; animation-delay: 2.2s; }
.ember:nth-child(16)::before { content: '🔧'; }

.ember:nth-child(17) { left: 48%; font-size: 21px; animation-duration: 4.4s; animation-delay: 0.7s; color: var(--ork-red); }
.ember:nth-child(17)::before { content: '🦷'; }

.ember:nth-child(18) { left: 22%; font-size: 36px; animation-duration: 5.8s; animation-delay: 1.9s; }
.ember:nth-child(18)::before { content: '🛠'; }

.ember:nth-child(19) { left: 88%; font-size: 24px; animation-duration: 3.6s; animation-delay: 0.1s; }
.ember:nth-child(19)::before { content: '🔩'; }

.ember:nth-child(20) { left: 60%; font-size: 30px; animation-duration: 4.7s; animation-delay: 2.6s; }
.ember:nth-child(20)::before { content: '⚙'; }

/* Distribuição extra para manter a tela cheia */
.ember:nth-child(21) { left: 15%; font-size: 26px; animation-duration: 3.2s; animation-delay: 1s; }
.ember:nth-child(21)::before { content: '🔧'; }
.ember:nth-child(22) { left: 35%; font-size: 34px; animation-duration: 5s; animation-delay: 0.5s; }
.ember:nth-child(22)::before { content: '⚙'; }
.ember:nth-child(23) { left: 55%; font-size: 22px; animation-duration: 4s; animation-delay: 2s; color: var(--ork-red); }
.ember:nth-child(23)::before { content: '🦷'; }
.ember:nth-child(24) { left: 75%; font-size: 32px; animation-duration: 4.5s; animation-delay: 1.5s; }
.ember:nth-child(24)::before { content: '🔧'; }
.ember:nth-child(25) { left: 10%; font-size: 20px; animation-duration: 3.5s; animation-delay: 3s; }
.ember:nth-child(25)::before { content: '🔩'; }
.ember:nth-child(26) { left: 80%; font-size: 38px; animation-duration: 5.2s; animation-delay: 0.2s; }
.ember:nth-child(26)::before { content: '🛠'; }
.ember:nth-child(27) { left: 40%; font-size: 24px; animation-duration: 3.8s; animation-delay: 2.5s; color: var(--ork-red); }
.ember:nth-child(27)::before { content: '🦷'; }
.ember:nth-child(28) { left: 20%; font-size: 28px; animation-duration: 4.2s; animation-delay: 1.2s; }
.ember:nth-child(28)::before { content: '⚙'; }
.ember:nth-child(29) { left: 95%; font-size: 24px; animation-duration: 3.6s; animation-delay: 0.8s; }
.ember:nth-child(29)::before { content: '🔧'; }
.ember:nth-child(30) { left: 50%; font-size: 34px; animation-duration: 5.5s; animation-delay: 1.7s; }
.ember:nth-child(30)::before { content: '🔩'; }