/* =========================================================
   1. GLOBAL RESET & ROOT VARIABLES
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root {
    /* Core backgrounds */
    --bg-main: #050509;
    --bg-alt: #0b0b14;

    /* Brand colours */
    --accent: #ed3a3a;        /* Rich purple */
    --accent-soft: #4c1d95;   /* Deep violet */
    --accent-red: #b91c1c;    /* Raven red */

    /* Text */
    --text-main: #ffffff;
    --text-muted: #a1a1a1;

    /* Status */
    --danger: #dc2626;        /* Red emphasis */
    --success: #22c55e;

    /* Borders */
    --border-subtle: #1f1f2e;
}

body {
    background:
        radial-gradient(circle at top, rgba(124,58,237,0.18), transparent 55%),
        radial-gradient(circle at bottom, rgba(185,28,28,0.12), transparent 60%),
        #020204;
    color: var(--text-main);
    min-height: 100vh;
}


/* =========================================================
   2. CORE LAYOUT: SPLASH, HEADER, MAIN, FOOTER
   ========================================================= */

/* ---------- 2.1 Splash Screen (Intro) ---------- */

#dre-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

/* Slash reveal */
.dre-intro-slash {
    position: absolute;
    width: 0%;
    height: 140%;
    background: linear-gradient(90deg, #8b5cf6, #c52222);
    transform: rotate(-20deg);
    left: -20%;
    animation: slashReveal 1s ease-out forwards;
    box-shadow:
        0 0 40px rgba(139,92,246,0.9),
        0 0 25px rgba(34,197,94,0.5);
}

@keyframes slashReveal {
    0% { width: 0%; left: -20%; }
    100% { width: 140%; left: -10%; }
}

/* Logo fade-in AFTER slash */
.dre-intro-logo-wrap {
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    z-index: 5;
    animation: introLogoPop 0.6s ease-out forwards 1s;
}

@keyframes introLogoPop {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.dre-intro-logo {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(139,92,246,0.8);
}

.dre-intro-subtitle {
    font-size: 1rem;
    color: #aaaaaa;
    letter-spacing: 0.12em;
}

.dre-intro-logo-img {
    width: 260px;
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    animation: introLogoPopImg 0.6s ease-out forwards 1s;
    filter: drop-shadow(0 0 20px rgba(139,92,246,0.8));
}

@keyframes introLogoPopImg {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- 2.2 Header & Nav ---------- */

.dre-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.dre-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.1;
}

/* DRE Logo in header (DRE Logo.png) */
.dre-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.dre-logo-main {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dre-logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dre-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.dre-nav a {
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.15rem;
    transition: color 0.2s ease;
}

.dre-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transition: width 0.2s ease;
}

.dre-nav a:hover {
    color: var(--text-main);
}

.dre-nav a:hover::after {
    width: 100%;
}

.dre-nav a::after {
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--accent-red)
    );
}

.dre-nav a.active {
    color: var(--text-main);
}

.dre-nav a.active::after {
    width: 100%;
}


/* ---------- 2.3 Main Sections ---------- */

main {
    padding: 1.5rem 1.25rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.dre-section {
    margin-top: 2.5rem;
    padding: 1.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 0.9rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.dre-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.dre-section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* ---------- 2.4 Footer ---------- */

.dre-footer {
    text-align: center;
    padding: 1.25rem 0;
    color: var(--text-muted);
}

/* =========================================================
   3. CORE COMPONENTS (Buttons, Cards, Forms, Lists, etc.)
   ========================================================= */

/* ---------- 3.1 Buttons ---------- */

.dre-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 6px; /* sharp, not pill */
    border: 1px solid var(--border-subtle);
    background: rgba(10, 10, 20, 0.85);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}


.dre-btn.primary {
    background:
        linear-gradient(
            180deg,
            rgba(124,58,237,0.9),
            rgba(76,29,149,0.9)
        );
    border-color: rgba(124,58,237,0.5);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 6px 18px rgba(0,0,0,0.6);
}



.dre-btn.primary:hover {
    transform: translateY(-1px);
    border-color: var(--accent-red);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 10px 28px rgba(185,28,28,0.35);
}


.dre-btn.secondary {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-muted);
}

.dre-btn.secondary:hover {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
}

/* ---------- 3.2 Cards & Grids ---------- */

.dre-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 0.9rem;
}

.dre-card {
    background: var(--bg-alt);
    border-radius: 0.75rem;
    padding: 1rem 1rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dre-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.dre-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* ---------- 3.3 Subsections, Status Pills, Tags ---------- */

.dre-subsection h3,
.dre-subsection h4 {
    margin-top: 0.75rem;
}

.dre-status {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
}

.dre-status-active {
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.dre-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--success);
    font-size: 0.8rem;
}

.dre-pill.alt {
    border-color: rgba(129, 140, 248, 0.6);
    color: #a5b4fc;
}

.dre-pill.neutral {
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

/* ---------- 3.4 Lists ---------- */

.dre-list {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dre-list li {
    margin-bottom: 0.2rem;
}

/* Contact list on Contact page */
.dre-contact-list {
    list-style: none;
    margin-top: 0.5rem;
}

.dre-contact-list li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.dre-contact-list strong {
    color: var(--text-main);
}



/* =========================================================
   4. PAGE COMPONENTS (Hero, News, Gallery, Games, etc.)
   ========================================================= */

/* ---------- 4.1 Hero Section (Homepage) ---------- */

.dre-hero {
    background:
        radial-gradient(circle at top left, rgba(124,58,237,0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(185,28,28,0.25), transparent 60%),
        rgba(10, 10, 20, 0.96);
}


.dre-hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dre-hero-content p {
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.dre-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}



/* ---------- 4.4 Game Logos (Games Page) ---------- */

.dre-game-logo {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 0.75rem auto;
    filter: drop-shadow(0 0 12px rgba(139,92,246,0.4));
    border-radius: 6px;
}


/* =========================================================
   6. MEET THE TEAM – PREMIUM CARDS
   ========================================================= */

.dre-team-grid {
    margin-top: 1rem;
}

/* Outer wrapper provides perspective */
.dre-team-card {
    perspective: 900px;
    background: transparent;
    border-radius: 1rem;
    padding: 0;
    overflow: visible; /* ensures avatar isn't clipped */
}

.dre-team-card-inner {
    background:
        radial-gradient(circle at top left, rgba(139,92,246,0.28), transparent 55%),
        radial-gradient(circle at bottom right, rgba(34,197,94,0.22), transparent 55%),
        rgba(15,23,42,0.98);
    border-radius: 1rem;
    padding: 1.4rem 1.2rem 1.3rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 30px rgba(0,0,0,0.65);
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
    overflow: visible;
}

/* Avatar area */
.dre-team-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.dre-team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    position: relative;
    z-index: 10;
    box-shadow:
        0 0 0 2px rgba(15,23,42,1),
        0 0 25px rgba(139,92,246,0.75),
        0 0 40px rgba(34,197,94,0.4);
}

/* Name & role */
.dre-team-name {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.dre-team-role {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

/* Social links */
.dre-team-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.dre-team-socials a {
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(148,163,184,0.5);
    color: #e5e7eb;
    background: rgba(15,23,42,0.9);
    transition: background 0.15s ease, transform 0.1s ease;
}

.dre-team-socials a:hover {
    background: rgba(139,92,246,0.3);
    transform: translateY(-1px);
}

/* =========================================================
   7. RESPONSIVE ADJUSTMENTS
   ========================================================= */

@media (max-width: 900px) {
    .dre-staff-layout {
        flex-direction: column;
    }

    .dre-staff-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dre-staff-tab-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 640px) {
    .dre-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .dre-nav {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .dre-hero-content h1 {
        font-size: 1.6rem;
    }
}
/* =========================================================
   EXTRA: TEAM BIO TEXT
   ========================================================= */

.dre-team-bio {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}


/* ===============================
   HERO — PRO STUDIO LAYOUT
================================= */

.dre-hero {
    padding: 2rem 2rem;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.2), transparent 60%),
        rgba(15, 23, 42, 0.92);
    border-radius: 1rem;
    margin-top: 1.5rem;
}

.dre-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.dre-hero-left {
    flex: 1.4;
}

.dre-hero-left h1 {
    margin-bottom: 0.75rem;
}

.dre-hero-left p {
    max-width: 600px;
    margin-bottom: 1rem;
}

.dre-hero-buttons {
    margin-top: 1rem;
}

.dre-hero-right {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dre-hero-logo {
    width: 220px;
    height: auto;
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    animation: heroLogoFade 0.7s ease-out 0.3s forwards;
}

@keyframes heroLogoFade {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive layout */
@media (max-width: 820px) {
    .dre-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .dre-hero-right {
        margin-bottom: 1rem;
    }

    .dre-hero-logo {
        width: 160px;
    }
}

/* =========================================
   GAMES PAGE – SHOWCASE CARDS
========================================= */

.dre-games-hero {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.dre-games-hero-left {
    flex: 1.5;
}

.dre-games-hero-right {
    flex: 1;
}

.dre-games-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dre-games-hero-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dre-games-grid {
    margin-top: 0.5rem;
}

.dre-game-card-top {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dre-game-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Per-game subtle backgrounds */
.dre-game-card-es {
    background:
        radial-gradient(circle at top left, rgba(139,92,246,0.18), transparent 60%);
    border-radius: 0.6rem;
    padding: 0.75rem 0.75rem 0.4rem;
    margin: -0.4rem -0.4rem 0;
}

.dre-game-card-gso {
    background:
        radial-gradient(circle at top left, rgba(34,197,94,0.18), transparent 60%);
    border-radius: 0.6rem;
    padding: 0.75rem 0.75rem 0.4rem;
    margin: -0.4rem -0.4rem 0;
}

.dre-game-logo-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.dre-game-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.dre-game-card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Responsive */
@media (max-width: 820px) {
    .dre-games-hero {
        flex-direction: column;
    }
}
/* =========================================
   DONATIONS PAGE – HERO, TIERS, TABLE
========================================= */

.dre-donations-hero {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.dre-donations-hero-left {
    flex: 1.4;
}

.dre-donations-hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.dre-donations-hero-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* Callout Card */
.dre-donations-callout {
    border-radius: 0.9rem;
    padding: 1.4rem 1.3rem;
    background:
        radial-gradient(circle at top left, rgba(139,92,246,0.25), transparent 55%),
        rgba(15,23,42,0.96);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    text-align: center;
    width: 280px;
}

.dre-donations-callout p {
    margin-bottom: 0.4rem;
}

.dre-donate-btn {
    margin-top: 0.7rem;
    font-size: 1rem;
    padding: 0.7rem 2rem;
}

.dre-small-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* QR Code */
.dre-donations-qr-block {
    margin-top: 1.4rem;
    text-align: center;
}

.dre-donate-qr {
    width: 170px;
    height: auto;
    border-radius: 0.9rem;
    filter: drop-shadow(0 0 12px rgba(139,92,246,0.4));
}

/* Tiers */
.dre-donation-tiers-grid {
    margin-top: 0.9rem;
}

.dre-donation-tier h3 {
    margin-bottom: 0.25rem;
}

.dre-donation-amount {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

/* Leaderboard */
.dre-donation-leaderboard-wrap {
    margin-top: 0.75rem;
    overflow-x: auto;
}

.dre-donation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dre-donation-table th,
.dre-donation-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

.dre-donation-table th {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dre-donation-table tbody tr:nth-child(even) {
    background: rgba(15,23,42,0.65);
}

.dre-donation-table tbody tr:hover {
    background: rgba(31,41,55,0.85);
}

/* Responsive */
@media (max-width: 820px) {
    .dre-donations-hero {
        flex-direction: column;
    }

    .dre-donations-hero-right {
        width: 100%;
        justify-content: flex-start;
    }

    .dre-donations-callout {
        width: 100%;
    }
}

/* =========================================
   HEADER – CENTERED STUDIO LAYOUT
========================================= */

.dre-header-centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem 1rem;
}

.dre-header-top {
    display: flex;
    justify-content: center;
}

.dre-header-centered .dre-logo-img {
    width: 42px;
    height: auto;
    margin-bottom: 0.25rem;
}

.dre-header-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dre-site-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dre-site-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.dre-header-centered .dre-nav {
    justify-content: center;
    margin-top: 0.4rem;
}
/* ===============================
   MEDIA SIZE CONTROL (GLOBAL)
================================= */

.dre-gallery-item img {
    width: 100%;
    max-height: 420px;     /* <-- KEY LIMIT */
    object-fit: cover;
    border-radius: 0.55rem;
    display: block;
}
img {
    max-width: 100%;
    height: auto;
}
