:root {
    --primary-red: #C41E3A;
    --primary-gold: #FFD700;
    --bg-black: #0B0B0B;
    --bg-dark-grey: #1a1a1a;
    --text-white: #ffffff;
    --text-grey: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 215, 0, 0.2);
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Orbitron', sans-serif; /* Futuristic font */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-grey);
}

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

/* --- Header --- */
header {
    background: rgba(11, 11, 11, 0.95);
    border-bottom: 1px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

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

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-white);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.auth-buttons .btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-register {
    background: linear-gradient(45deg, var(--primary-red), #800000);
    border: none;
    color: white;
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

/* --- Hero Section --- */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-gold);
    color: var(--bg-black);
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    color: var(--bg-black);
}

/* --- Magazine Layout (Grid) --- */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 60px 0;
}

.grid-item {
    background: var(--bg-dark-grey);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.grid-content {
    padding: 20px;
}

/* Featured Article (Span 8 cols) */
.featured-article {
    grid-column: span 8;
    display: flex;
    flex-direction: row;
}

.featured-article img {
    width: 50%;
    height: 100%;
}

.featured-article .grid-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Sidebar Widgets (Span 4 cols) */
.sidebar-widget {
    grid-column: span 4;
}

/* Standard Cards (Span 4 cols) */
.card-article {
    grid-column: span 4;
}

/* --- Content Page Layout --- */
.content-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.sidebar-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--bg-dark-grey);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-red);
}

.sidebar-nav h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: var(--text-grey);
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
}

.sidebar-nav a.active, .sidebar-nav a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.main-article {
    background: var(--bg-dark-grey);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.main-article h1 {
    font-size: 2.5rem;
    color: var(--text-white);
}

.article-body h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    color: var(--primary-gold);
    border-left: 4px solid var(--primary-red);
    padding-left: 15px;
}

.article-body h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    color: var(--text-white);
}

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-grey);
}

.article-body li {
    margin-bottom: 10px;
}

.info-box {
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid var(--primary-red);
    padding: 20px;
    border-radius: 4px;
    margin: 30px 0;
}

.info-box h4 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-article, .sidebar-widget, .card-article {
        grid-column: span 2;
    }
    .featured-article {
        flex-direction: column;
    }
    .featured-article img, .featured-article .grid-content {
        width: 100%;
    }
    .content-page {
        grid-template-columns: 1fr;
    }
    .sidebar-nav {
        display: none; /* Hide sidebar on mobile for simplicity */
    }
}

@media (max-width: 768px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }
    .featured-article, .sidebar-widget, .card-article {
        grid-column: span 1;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
