:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #e0e0e0;
    --text-muted: #888888;
    --accent-crimson: #8b0000;
    --accent-crimson-hover: #a50000;
    --accent-purple: #4a004a;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: radial-gradient(circle at center, #111 0%, #0a0a0a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-crimson);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

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

/* Navbar */
.navbar {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-crimson);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

/* Ads */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin: 20px 0;
}

.ad-placeholder {
    background-color: #222;
    border: 1px dashed #555;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 728px;
    height: 90px; /* Leaderboard ad height */
    text-align: center;
}

.ad-placeholder span {
    font-weight: 600;
    text-transform: uppercase;
}

.ad-sidebar {
    height: 600px;
    max-width: 300px;
}

/* Home / Grid Layout */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 3fr 1fr; /* Content vs Sidebar */
    gap: 40px;
    margin: 40px auto;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(139,0,0,0.1) 0%, rgba(10,10,10,1) 100%);
    border-bottom: 1px solid #222;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--accent-crimson);
    text-shadow: 0 0 10px rgba(139,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--bg-card);
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px rgba(139,0,0,0.2);
}

.article-img {
    width: 100%;
    height: 200px;
    background-color: #333;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-crimson);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.article-title {
    font-size: 1.5rem;
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--accent-crimson);
    color: var(--accent-crimson);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: var(--accent-crimson);
    color: #fff;
}

/* Sidebar */
.sidebar {
    background-color: var(--bg-card);
    padding: 20px;
    border: 1px solid #222;
    height: fit-content;
}

.sidebar h3 {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Single Article Page */
.single-article {
    max-width: 800px;
    margin: 40px auto;
}

.single-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-header h1 {
    font-size: 3rem;
}

.single-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-content {
    font-size: 1.1rem;
    color: #ccc;
}

.single-content p {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #050505;
    border-top: 1px solid #222;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links ul, .footer-social ul {
    list-style: none;
}

.footer-links li, .footer-social li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 15px 0;
    }
}
