/* ===========================
   CUSTOM FONT
   =========================== */
@font-face {
    font-family: 'Cabal Infernum';
    src: url('font.ttf') format('truetype');
}

/* ===========================
   COLOR VARIABLES
   =========================== */
:root {
    --inferno-orange: #E7591D;
    --inferno-bright: #FF7A2C;
    --lava-amber: #FFA55C;
    --ashen-gray: #C0B5A6;
    --ember-red: #8C2A14;
    --deep-charcoal: #1E1A17;
    --blackened-iron: #3A2D25;
    --shadow-black: #0B0908;
}

/* ===========================
   GLOBAL STYLES
   =========================== */
body {
    margin: 0;
    font-family: 'Cabal Infernum', serif;
    color: var(--ashen-gray);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.jpg') center center / cover no-repeat;
    filter: blur(2px) brightness(0.75);
    transform: scale(1.1);
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

a, a:visited, a:active {
    color: var(--inferno-orange);
    text-decoration: none;
}

/* ============================================
   BACKGROUND PARTICLES (ASH + FLAME)
   ============================================ */
#particle-layer {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
    overflow: hidden;

    z-index: 10; /* Below characters & modal */
}

/* Base particle */
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.85;
    pointer-events: none;
}

/* Flame particles */
.particle.flame {
    width: 6px;
    height: 6px;

    background: radial-gradient(circle,
        rgba(255, 120, 40, 1),
        rgba(255, 80, 10, 0.7),
        rgba(255, 20, 0, 0)
    );

    filter: blur(1px);
    animation: riseFlame 2.5s linear forwards;
}

/* Dust/Ash particles */
.particle.dust {
    width: 4px;
    height: 4px;

    background: radial-gradient(circle,
        rgba(180, 180, 180, 0.9),
        rgba(80, 80, 80, 0.1)
    );

    filter: blur(2px);
    opacity: 0.4;

    animation: riseDust 6s linear forwards;
}

@keyframes riseFlame {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    60% {
        transform: translateY(-140px) scale(1.3);
    }
    100% {
        transform: translateY(-260px) scale(0.4);
        opacity: 0;
    }
}

@keyframes riseDust {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-320px) translateX(40px);
        opacity: 0;
    }
}


/* ============================================
   HEAT DISTORTION WAVES (Infernal Mirage Effect)
   ============================================ */
#heat-distortion {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 45%; /* distortion affects lower half */

    pointer-events: none;
    z-index: 9; /* below flames, above background */

    background: radial-gradient(
        ellipse at bottom,
        rgba(255, 80, 0, 0.18) 0%,
        rgba(255, 40, 0, 0.12) 30%,
        rgba(0, 0, 0, 0) 80%
    );

    filter: blur(6px);
    opacity: 0.22;

    animation: heatWave 3s ease-in-out infinite;
}

/* Wavy shifting of the distortion layer */
@keyframes heatWave {
    0% {
        transform: translateY(0) scaleX(1);
        filter: blur(5px);
        opacity: 0.18;
    }
    50% {
        transform: translateY(-12px) scaleX(1.04);
        filter: blur(7px);
        opacity: 0.28;
    }
    100% {
        transform: translateY(0) scaleX(1);
        filter: blur(5px);
        opacity: 0.18;
    }
}


/* ===========================
   NAV BAR
   =========================== */
.navbar {
    width: 100%;
    height: 70px;
    padding: 0 20px;

    background: linear-gradient(to bottom, #14100D, #070302);
	border-bottom: none;
	position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
    overflow: hidden;

    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 80, 0, 0.2);	
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        to right,
        #3b130a,
        #8c2b13,
        #ff6a2a,
        #8c2b13,
        #3b130a
    );

    opacity: 0.6;
    box-shadow:
        0 0 8px rgba(255, 100, 40, 0.4),
        0 0 15px rgba(255, 60, 10, 0.2);

    animation: glowPulse 3.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0% {
        opacity: 0.45;
        box-shadow:
            0 0 6px rgba(255, 100, 40, 0.3),
            0 0 10px rgba(255, 60, 10, 0.15);
    }
    50% {
        opacity: 0.95;
        box-shadow:
            0 0 14px rgba(255, 120, 50, 0.55),
            0 0 25px rgba(255, 70, 20, 0.35);
    }
    100% {
        opacity: 0.45;
        box-shadow:
            0 0 6px rgba(255, 100, 40, 0.3),
            0 0 10px rgba(255, 60, 10, 0.15);
    }
}

.nav-left,
.nav-center,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-center {
    justify-content: center;
}

.nav-left {
    justify-content: flex-start;
    font-size: 25px;
}

.nav-right {
    justify-content: flex-end;
}

.logo {
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 120, 40, 0.8));
}

/* ===========================
   LAYOUT GRID
   =========================== */
.main-wrapper {
    width: 70%;
    margin: 40px auto;

    display: flex;
    gap: 20px;
}

.left { flex: 15%; }
.middle { flex: 70%; }
.right { flex: 15%; }

/* ===========================
   CONTAINERS
   =========================== */
.column {
    position: relative;
    padding: 18px;
    border: 2px solid var(--ember-red);
    
    background: radial-gradient(
		circle at top,
		rgba(120, 30, 5, 0.05),
		rgba(4, 2, 2, 0.94)
	);

    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(231, 89, 29, 0.15);

    backdrop-filter: blur(2px);
}

.column::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 16px rgba(255, 80, 0, 0.08),
        inset 0 0 28px rgba(255, 120, 40, 0.05);
}

.column h2,
.column h3 {
    color: var(--inferno-orange);
    text-shadow: 0 0 8px rgba(255, 120, 40, 0.6);
    border-bottom: 2px solid var(--ember-red);
    padding-bottom: 5px;
    margin-bottom: 12px;
}

.column a {
    color: var(--lava-amber);
    text-decoration: none;
    text-shadow: 0 0 6px rgba(255, 120, 40, 0.6);
}

.column a:hover {
    color: var(--inferno-bright);
    text-shadow: 0 0 10px rgba(255, 160, 60, 1);
}

/* ===========================
   Rates Table
   =========================== */
.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.rates-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--ember-red);
    color: var(--ashen-gray);
    font-size: 16px;
}

.rates-table td:first-child { text-align: left; }
.rates-table td:nth-child(2) { text-align: center; }

/* ===========================
   NEWS BOX
   =========================== */
.news-box {
    height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    text-shadow: 1px 1px 3px #000;
}

.news-box::-webkit-scrollbar { width: 8px; }

.news-box::-webkit-scrollbar-thumb {
    background: var(--ember-red);
    border-radius: 5px;
    box-shadow: inset 0 0 8px rgba(255, 110, 40, 0.7);
}

.news-box::-webkit-scrollbar-track {
    background: rgba(30, 10, 5, 0.4);
}

/* ===========================
   BUTTONS
   =========================== */
.download-btn {
    display: inline-block;
    text-align: center;
    padding: 10px 25px;

    font-family: 'Cabal Infernum', serif;
    font-size: 20px;
    color: var(--inferno-orange);

    background: linear-gradient(to bottom, #14100D, #070302);
    border: 2px solid var(--ember-red);
    border-radius: 6px;

    text-shadow: 0 0 6px rgba(255, 120, 40, 0.7);
    box-shadow: inset 0 0 8px rgba(255, 80, 0, 0.2),
                0 0 12px rgba(0, 0, 0, 0.8);

    transition: 0.25s ease;
}

.download-btn:hover {
    color: var(--inferno-bright);
    border-color: var(--inferno-orange);
    box-shadow:
        inset 0 0 14px rgba(255, 120, 40, 0.35),
        0 0 14px rgba(231, 89, 29, 0.5);
}

.btn-text {
    line-height: 1.2;
    display: inline-block;
    color: var(--inferno-orange);
}

/* ===========================
   MODAL OVERLAY BACKGROUND
   =========================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}

/* ===========================
   DIABLO-STYLE MODAL WINDOW
   =========================== */
.modal-window {
    width: 420px;
    padding: 25px;

    background: radial-gradient(
        circle at top,
        rgba(120, 30, 5, 0.12),
        rgba(4, 2, 2, 0.94)
    );

    border: 2px solid var(--ember-red);
    border-radius: 10px;

    box-shadow:
        0 0 28px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(231, 89, 29, 0.35),
        inset 0 0 14px rgba(255, 80, 0, 0.12);

    text-align: center;
}

/* Heading inside modal */
.modal-window h2 {
    color: var(--inferno-orange);
    margin-bottom: 18px;
    text-shadow: 0 0 10px rgba(255, 120, 40, 0.7);
    border-bottom: 2px solid var(--ember-red);
    padding-bottom: 8px;
}

/* ===========================
   REGISTER FORM
   =========================== */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
}

.register-form label {
    color: var(--lava-amber);
    font-size: 17px;
    text-shadow: 0 0 6px rgba(255, 120, 40, 0.5);
    text-align: left;
}

.register-form input {
    padding: 10px;
    background: rgba(15, 10, 8, 0.9);
    border: 2px solid var(--ember-red);
    color: var(--lava-amber);
    font-size: 16px;
    border-radius: 5px;
}

.register-form input:focus {
    outline: none;
    border-color: var(--inferno-bright);
    box-shadow: 0 0 10px rgba(255, 120, 40, 0.6);
}

/* ===========================
   MESSAGE BOX
   =========================== */
.message-box {
    background: rgba(50, 20, 10, 0.7);
    border: 1px solid var(--ember-red);
    padding: 12px;
    margin-bottom: 20px;
    color: var(--lava-amber);
    text-shadow: 0 0 4px rgba(255,120,40,0.4);
    border-radius: 6px;
}
