@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-main: #060807; /* Spooky Decaying Moss Green-Black */
    --bg-panel: rgba(14, 18, 16, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.02);
    
    --accent-copper: #c5a880; /* Weathered Brass/Gold */
    --accent-copper-dim: rgba(197, 168, 128, 0.25);
    --accent-emerald: #10b981; /* Glowing Spooky Mist Green */
    --accent-emerald-dim: rgba(16, 185, 129, 0.2);
    
    --text-main: #f4f1ea; /* High-contrast bone paper white */
    --text-muted: #94a3b8;
    --text-stone: #8c8a82; /* Warm stone grey */
    
    --border-glass: 1px solid rgba(197, 168, 128, 0.15);
    --border-glass-hover: 1px solid rgba(197, 168, 128, 0.4);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.background-effects {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none; overflow: hidden;
}

.glow {
    position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.35;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent-emerald-dim); top: -200px; left: -100px; animation: floatSpooky 25s ease-in-out infinite alternate; }
.glow-2 { width: 500px; height: 500px; background: var(--accent-copper-dim); bottom: -100px; right: -50px; animation: floatSpooky 20s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 400px; height: 400px; background: rgba(16, 185, 129, 0.1); top: 35%; left: 30%; animation: floatSpooky 30s ease-in-out infinite; }

.grid-overlay {
    position: absolute; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(197, 168, 128, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 168, 128, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

@keyframes floatSpooky {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

/* Elegant Gothic Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 6%; position: fixed; width: 100%; top: 0; z-index: 100;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-glass); background: rgba(6, 8, 7, 0.85);
}

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 900; letter-spacing: -0.5px; font-size: 1.4rem; color: var(--text-main); text-decoration: none; }
.logo .dim { color: var(--accent-copper); text-shadow: 0 0 10px rgba(197, 168, 128, 0.2); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-stone); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: all 0.3s; letter-spacing: 1px; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); text-shadow: 0 0 8px rgba(244, 241, 234, 0.3); }

/* Buttons with Decaying Copper/Spooky Emerald styling */
.btn-primary, .btn-secondary, .btn {
    padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 0.5px;
    font-family: var(--font-sans);
}
.btn-primary, .btn {
    background: var(--accent-copper); color: #060807; border: none;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}
.btn-primary:hover, .btn:hover {
    background: #f4f1ea; transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.4);
}
.btn-secondary {
    background: var(--bg-glass); color: var(--text-main); border: var(--border-glass);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(197, 168, 128, 0.15); border-color: var(--accent-copper); transform: translateY(-2px);
}

/* Cinematic Hero */
.hero {
    min-height: 85vh; display: flex; align-items: center; justify-content: center;
    padding: 140px 6% 80px; position: relative; overflow: hidden; text-align: center;
    border-bottom: var(--border-glass);
}
.hero-content { max-width: 820px; z-index: 10; }

.terminal-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px; color: var(--accent-emerald); font-family: var(--font-mono);
    font-size: 12px; margin-bottom: 28px; box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}
.pulse {
    width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%;
    animation: spookyPulse 2s infinite;
}
@keyframes spookyPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: var(--font-serif); font-size: clamp(32px, 5vw, 54px); font-weight: 900;
    line-height: 1.15; letter-spacing: -1px; margin-bottom: 24px; color: var(--text-main);
}
.hero-title .highlight {
    color: var(--accent-copper); text-shadow: 0 0 15px rgba(197, 168, 128, 0.15);
}
.hero-subtitle {
    font-size: 18px; color: var(--text-stone); max-width: 680px; margin: 0 auto 36px;
    line-height: 1.7; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Content Containers */
.container, main { max-width: 1100px; margin: 0 auto; padding: 80px 6%; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.section-header h2 .highlight { color: var(--accent-copper); }
.section-header p { font-size: 17px; color: var(--text-stone); max-width: 600px; margin: 0 auto; font-weight: 300; }

/* Magazine Editorial Card Grid */
.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;
    margin-top: 40px;
}
.glass-card, .card, .article-card {
    background: var(--bg-panel); border: var(--border-glass); border-radius: 12px;
    padding: 32px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.glass-card::before, .card::before, .article-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-copper), transparent);
    transform: scaleX(0); transition: transform 0.4s ease;
}
.glass-card:hover, .card:hover, .article-card:hover {
    transform: translateY(-6px); border-color: rgba(197, 168, 128, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.glass-card:hover::before, .card:hover::before, .article-card:hover::before {
    transform: scaleX(1);
}

.card h3, .article-card h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; line-height: 1.35; margin-bottom: 12px; color: var(--text-main); }
.card h3 a, .article-card h3 a { color: inherit; text-decoration: none; transition: color 0.3s; }
.card h3 a:hover, .article-card h3 a:hover { color: var(--accent-copper); }
.card p, .article-card p { color: var(--text-stone); font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; font-weight: 300; }

/* Thematic Lists & Blockquotes inside articles */
article, .article-content { max-width: 820px; margin: 120px auto 60px; padding: 0 24px; }
article h1 { font-family: var(--font-serif); font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; line-height: 1.2; margin-bottom: 24px; letter-spacing: -0.5px; }
article p { margin-bottom: 24px; font-size: 17px; color: var(--text-main); opacity: 0.9; font-weight: 300; }
article h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 800; margin: 48px 0 20px; color: var(--accent-copper); }
article h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin: 36px 0 16px; }
article ul, article ol { margin: 24px 0 24px 28px; }
article li { margin-bottom: 12px; font-size: 16.5px; color: var(--text-main); opacity: 0.85; font-weight: 300; }
article blockquote {
    border-left: 3px solid var(--accent-copper); padding: 20px 28px; margin: 32px 0;
    background: rgba(197, 168, 128, 0.04); border-radius: 0 12px 12px 0;
    font-family: var(--font-serif); font-style: italic; color: var(--text-main); font-size: 18px;
}

/* Beautiful custom input controls */
form { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; width: 100%; max-width: 600px; }
input[type="email"], input[type="text"], textarea {
    flex: 1; min-width: 240px; padding: 16px 24px;
    background: rgba(0, 0, 0, 0.4); border: var(--border-glass);
    border-radius: 50px; color: var(--text-main); font-size: 15px;
    font-family: var(--font-sans); outline: none; transition: all 0.3s;
}
input:focus, textarea:focus { border-color: var(--accent-copper); box-shadow: 0 0 15px rgba(197, 168, 128, 0.15); }
textarea { border-radius: 16px; min-height: 120px; resize: vertical; }

/* Themed Sponsored / Affiliate widgets */
.affiliate-widget, .affiliate-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(197, 168, 128, 0.03));
    border: 1px solid rgba(197, 168, 128, 0.25); border-radius: 16px;
    padding: 32px; margin: 40px 0; position: relative; overflow: hidden; text-align: center;
}
.affiliate-widget::before {
    content: 'EXCLUSIVE SPONSOR'; position: absolute; top: 0; right: 0;
    background: var(--accent-copper); color: #060807; font-size: 10px; font-weight: 800;
    padding: 4px 14px; border-bottom-left-radius: 8px; letter-spacing: 1px;
}
.affiliate-widget h3 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--text-main); margin-bottom: 8px; }
.affiliate-widget p { color: var(--text-stone); font-size: 15px; margin-bottom: 24px; }
.affiliate-widget .btn-buy {
    background: var(--accent-emerald); color: #060807; font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.affiliate-widget .btn-buy:hover {
    background: #fff; box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); transform: translateY(-2px);
}

/* Footer styling */
footer {
    border-top: var(--border-glass); padding: 60px 6% 30px; margin-top: 100px;
    text-align: center; color: var(--text-stone); font-size: 13.5px;
    background: rgba(6, 8, 7, 0.95);
}
footer .links { margin-bottom: 24px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
footer .links a { color: var(--text-stone); text-decoration: none; transition: color 0.3s; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
footer .links a:hover { color: var(--text-main); }

/* Spooky Cookie Consent */
.cookie-banner {
    position: fixed; bottom: 24px; right: 24px; max-width: 360px;
    background: var(--bg-panel); border: var(--border-glass-hover);
    padding: 24px; border-radius: 12px; z-index: 1000; box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar { padding: 16px 20px; flex-direction: column; gap: 12px; }
    .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .hero { padding: 160px 20px 60px; }
    .hero-title { font-size: 2.2rem; }
    .container, main { padding: 60px 20px; }
}
