/* Wraith Theme CSS */

:root {
    --void-black: #050505;
    --abyss-dark: #0a0a0f;
    --spectral-cyan: #00ffcc;
    --phantom-purple: #8800ff;
    --ghost-white: #e0e0e0;
    --fog-grey: #2a2a35;
    --ectoplasm-glow: rgba(0, 255, 204, 0.2);
    --shadow-mist: rgba(0, 0, 0, 0.7);
    --warning-red: #ff3333;
    --spirit-dim: #8899a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.wraith-body {
    background-color: var(--void-black);
    color: var(--ghost-white);
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Fog Animation */
.fog-layer, .fog-layer-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png') repeat-x;
    background-size: contain;
    animation: fogMove 60s linear infinite;
    z-index: -1;
    opacity: 0.3;
}

.fog-layer-2 {
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png') repeat-x;
    animation: fogMove 40s linear infinite reverse;
    opacity: 0.2;
    z-index: -2;
}

@keyframes fogMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Creepster', cursive;
    letter-spacing: 2px;
}

/* Age Gate */
.phantom-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gate-void {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
}

.gate-monolith {
    position: relative;
    z-index: 2;
    background: var(--abyss-dark);
    border: 1px solid var(--phantom-purple);
    box-shadow: 0 0 30px var(--phantom-purple);
    padding: 60px;
    max-width: 500px;
    text-align: center;
    border-radius: 4px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gate-sigil {
    width: 50px;
    height: 50px;
    border: 2px solid var(--spectral-cyan);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px var(--spectral-cyan);
}

.gate-title {
    font-size: 3rem;
    color: var(--phantom-purple);
    text-shadow: 0 0 10px var(--phantom-purple);
    margin-bottom: 20px;
}

.gate-warning {
    color: var(--spirit-dim);
    margin-bottom: 30px;
    font-family: 'Nosifer', cursive;
    font-size: 0.9rem;
}

.gate-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.gate-btn {
    background: transparent;
    border: 1px solid var(--spectral-cyan);
    color: var(--spectral-cyan);
    padding: 15px 30px;
    font-family: 'Creepster', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.gate-btn:hover {
    background: var(--spectral-cyan);
    color: var(--void-black);
    box-shadow: 0 0 20px var(--spectral-cyan);
}

.gate-btn.deny {
    border-color: var(--spirit-dim);
    color: var(--spirit-dim);
}

.gate-btn.deny:hover {
    background: var(--spirit-dim);
    box-shadow: 0 0 20px var(--spirit-dim);
}

/* Visibility Toggle */
.shadow-realm {
    display: none;
}
.shadow-realm.visible {
    display: block;
}

/* Alert */
.spectral-alert {
    background: linear-gradient(90deg, transparent, var(--phantom-purple), transparent);
    text-align: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--phantom-purple);
}

.alert-rune {
    font-family: 'Nosifer', cursive;
    color: var(--void-black);
    font-size: 0.8rem;
    text-shadow: 0 0 2px var(--spectral-cyan);
}

/* Header */
.wraith-header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(136, 0, 255, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-text {
    font-family: 'Nosifer', cursive;
    font-size: 1.5rem;
    color: var(--ghost-white);
    text-shadow: 2px 2px 0 var(--phantom-purple);
}

.wraith-nav {
    display: flex;
    gap: 40px;
}

.nav-spirit {
    text-decoration: none;
    color: var(--spirit-dim);
    font-family: 'Creepster', cursive;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
}

.nav-spirit:hover {
    color: var(--spectral-cyan);
    text-shadow: 0 0 8px var(--spectral-cyan);
}

.nav-summoner {
    display: none; /* Mobile menu toggle logic needed if implementing JS for it, assuming hidden for desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.rune-line {
    width: 30px;
    height: 2px;
    background: var(--spectral-cyan);
}


/* Hero */
.specter-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-abyss {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(136, 0, 255, 0.1) 0%, transparent 70%);
}

.hero-manifestation {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--warning-red);
    padding: 5px 15px;
    margin-bottom: 30px;
    background: rgba(255, 51, 51, 0.1);
}

.badge-glyph {
    color: var(--warning-red);
    font-family: 'Nosifer', cursive;
    font-size: 0.8rem;
}

.hero-title {
    margin-bottom: 20px;
}

.title-faint {
    display: block;
    font-size: 3rem;
    color: var(--spirit-dim);
    opacity: 0.5;
}

.title-glow {
    display: block;
    font-size: 6rem;
    color: var(--spectral-cyan);
    text-shadow: 0 0 20px var(--spectral-cyan), 0 0 40px var(--phantom-purple);
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    from { text-shadow: 0 0 20px var(--spectral-cyan); }
    to { text-shadow: 0 0 40px var(--spectral-cyan), 0 0 60px var(--phantom-purple); }
}

.hero-prophecy {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ghost-white);
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--spectral-cyan);
    padding: 10px 25px;
    background: rgba(0, 255, 204, 0.05);
}

.soul-dot {
    width: 10px;
    height: 10px;
    background: var(--spectral-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--spectral-cyan);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.status-whisper {
    font-family: 'Creepster', cursive;
    color: var(--spectral-cyan);
    letter-spacing: 1px;
}

/* Sections General */
section {
    padding: 100px 20px;
}

.zone-container {
    max-width: 1200px;
    margin: 0 auto;
}

.zone-header {
    text-align: center;
    margin-bottom: 60px;
}

.header-mark {
    color: var(--phantom-purple);
    font-family: 'Nosifer', cursive;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.header-inscription {
    font-size: 3rem;
    color: var(--ghost-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 var(--abyss-dark);
}

.header-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--spectral-cyan), transparent);
    margin: 0 auto;
}

/* Crypt Zone (About) */
.crypt-zone {
    background: linear-gradient(to bottom, var(--void-black), var(--abyss-dark));
}

.tombstone-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    position: relative;
}

.tombstone-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--spectral-cyan);
    border-left: 2px solid var(--spectral-cyan);
}

.tombstone-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--spectral-cyan);
    border-right: 2px solid var(--spectral-cyan);
}

.card-head h3 {
    color: var(--spectral-cyan);
    font-size: 2rem;
    margin-bottom: 20px;
}

.card-inscription {
    line-height: 1.8;
    color: var(--spirit-dim);
}

/* Artifacts (Features) */
.artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.artifact-item {
    background: var(--abyss-dark);
    padding: 30px;
    border: 1px solid var(--phantom-purple);
    transition: transform 0.3s;
}

.artifact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(136, 0, 255, 0.1);
}

.item-id {
    margin-bottom: 20px;
}

.id-glyph {
    font-family: 'Nosifer', cursive;
    font-size: 2rem;
    color: var(--phantom-purple);
    opacity: 0.3;
}

.item-name {
    color: var(--ghost-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.item-lore {
    color: var(--spirit-dim);
    line-height: 1.6;
    margin-bottom: 25px;
}

.item-state {
    display: flex;
    align-items: center;
    gap: 10px;
}

.state-orb {
    width: 8px;
    height: 8px;
    background: var(--spectral-cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--spectral-cyan);
}

.state-txt {
    font-family: 'Creepster', cursive;
    color: var(--spectral-cyan);
    font-size: 0.9rem;
}

/* Portal Zone (Game) */
.portal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.scroll-panel {
    border-left: 2px solid var(--phantom-purple);
    padding-left: 30px;
}

.scroll-head h3 {
    color: var(--phantom-purple);
    font-size: 2rem;
    margin-bottom: 20px;
}

.scroll-text {
    line-height: 1.8;
    color: var(--spirit-dim);
}

.frame-structure {
    background: var(--abyss-dark);
    padding: 10px;
    border: 1px solid var(--spectral-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
}

.frame-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--void-black);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--spectral-cyan);
}

.bar-lights {
    display: flex;
    gap: 5px;
}

.light {
     width: 10px;
     height: 10px;
     border-radius: 50%;
}
.light.red { background: #ff5f56; }
.light.yellow { background: #ffbd2e; }
.light.green { background: #27c93f; }

.frame-bar h3 {
    color: var(--spectral-cyan);
    font-size: 1rem;
    font-family: 'Nosifer', cursive;
}

.bar-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Creepster', cursive;
    color: var(--spectral-cyan);
    font-size: 0.8rem;
}

.pulse-ring {
    width: 6px;
    height: 6px;
    background: var(--spectral-cyan);
    border-radius: 50%;
    animation: blink 0.5s infinite alternate;
}

.frame-viewport {
    background: #000;
    min-height: 600px;
}

/* Coven Zone (Team) */
.coven-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.image-border {
    border: 20px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.image-border img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s;
}

.image-border img:hover {
    filter: grayscale(0%) contrast(1);
}

.detail-block {
    margin-bottom: 40px;
}

.block-title {
    color: var(--phantom-purple);
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(136, 0, 255, 0.3);
    padding-bottom: 5px;
    display: inline-block;
}

.block-text {
    color: var(--spirit-dim);
    line-height: 1.7;
}

/* Warning Zone */
.warning-box {
    border: 1px solid var(--warning-red);
    background: rgba(255, 51, 51, 0.05);
    padding: 40px;
    text-align: center;
}

.warning-head {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.warning-title {
    color: var(--warning-red);
    font-size: 2.5rem;
}

.warning-beacons {
    display: flex;
    gap: 10px;
}

.beacon {
    width: 15px;
    height: 15px;
    background: var(--warning-red);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: blink 0.8s infinite;
}

.warning-text {
    color: var(--ghost-white);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Credentials */
.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.credential-card {
    background: var(--abyss-dark);
    padding: 30px;
    border-top: 3px solid var(--spectral-cyan);
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-head-text {
    color: var(--spectral-cyan);
    font-size: 1.5rem;
}

.card-seal {
    border: 1px solid var(--spectral-cyan);
    color: var(--spectral-cyan);
    padding: 5px 10px;
    font-family: 'Nosifer', cursive;
    font-size: 0.7rem;
    border-radius: 5px;
}

.card-body-text {
    color: var(--spirit-dim);
    line-height: 1.6;
}

/* Footer */
.wraith-footer {
    background: #000;
    border-top: 1px solid var(--phantom-purple);
}

.footer-ribbon {
    background: var(--phantom-purple);
    text-align: center;
    padding: 10px;
}

.ribbon-text {
    color: var(--void-black);
    font-family: 'Nosifer', cursive;
    font-size: 0.9rem;
}

.footer-main {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.link-spirit {
    color: var(--spirit-dim);
    text-decoration: none;
    font-family: 'Creepster', cursive;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.link-spirit:hover {
    color: var(--phantom-purple);
    text-shadow: 0 0 10px var(--phantom-purple);
}

.footer-notice {
    text-align: center;
    margin-bottom: 50px;
    border: 1px dashed var(--spirit-dim);
    padding: 30px;
    border-radius: 4px;
}

.notice-head h4 {
    color: var(--spectral-cyan);
    margin-bottom: 15px;
    font-family: 'Nosifer', cursive;
}

.notice-body {
    color: var(--spirit-dim);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.copy-mark {
    color: var(--spirit-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Raleway', sans-serif;
}

.compliance-logos {
    display: flex;
    gap: 20px;
}

.logo-anchor img {
    height: 30px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.logo-anchor:hover img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .portal-layout, .coven-layout, .credentials-grid, .coven-image {
        grid-template-columns: 1fr;
    }
    .hero-title .title-glow {
        font-size: 3rem;
    }
    .gate-monolith {
        margin: 20px;
    }
}
