@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(26, 26, 35, 0.7);
    --primary: #c9a84c;
    /* Gold */
    --secondary: #6b21a8;
    /* Purple */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(201, 168, 76, 0.2);
    --glass: rgba(255, 255, 255, 0.03);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    word-break: break-word;
    /* Safety for long URLs/Words */
}

h1,
.cinzel-brand {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2,
h3,
h4,
.cinzel {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: none;
    /* More readable for long titles */
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(107, 33, 168, 0.15) 0%, transparent 70%);
    position: relative;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Grids */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

aside.sidebar {
    position: sticky;
    top: 80px;
    /* Header height + spacing */
    align-self: start;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero {
        height: auto;
        min-height: 35vh;
        padding: 40px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    aside.sidebar {
        position: static;
        margin-top: 40px;
    }

    /* Article specific mobile adjustments */
    .article-content {
        padding-left: 15px !important;
        font-size: 1rem !important;
    }

    footer {
        padding: 40px 0;
        margin-top: 60px;
    }

    .footer-links a {
        margin: 0 10px;
        display: inline-block;
        margin-bottom: 10px;
    }
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* AdSense Placeholders */
.ad-box {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 15px;
    text-align: center;
    margin: 10px 0;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Content Utility */
.badge {
    background: var(--secondary);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

.source-label {
    font-size: 0.8rem;
    color: var(--primary);
    font-style: italic;
}

/* Footer */
footer {
    background: #050508;
    border-top: 1px solid var(--border);
    padding: 50px 0;
    margin-top: 100px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
    font-size: 0.9rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}