
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

/* CSS Variables */
:root {
    --bg-color: #0a0a1a;
    --primary-glow: #00f0ff;
    --secondary-glow: #ff00ff;
    --text-color: #e0e0e0;
    --border-color: rgba(0, 240, 255, 0.2);
    --card-bg: #10102a;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Fira Code', monospace;
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-shadow: 0 0 1px rgba(224, 224, 224, 0.2);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--primary-glow);
    text-shadow: 0 0 5px var(--primary-glow);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--secondary-glow);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px var(--secondary-glow);
}

a:hover {
    color: var(--primary-glow);
    text-shadow: 0 0 5px var(--primary-glow);
}

img {
    max-width: 100%;
    height: auto;
    filter: contrast(1.1) saturate(1.2);
    border: 1px solid var(--border-color);
}

/* Header & Navigation */
.header {
    background-color: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-glow);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-nav a {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.nav-link-active {
    color: var(--primary-glow);
    text-shadow: 0 0 5px var(--primary-glow);
}

/* Main Content Layout */
.main-content {
    padding: 2.5rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .content-grid {
        grid-template-columns: 3fr 1fr;
    }
}

.articles-section {
    width: 100%;
}

/* Featured Article */
.featured-article {
    background: linear-gradient(145deg, rgba(16, 16, 42, 0.5), rgba(10, 10, 26, 0.5));
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
}

.featured-article-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.featured-article-content {
    padding: 2rem;
}

.tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

/* Article Grid */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-glow);
    display: inline-block;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-glow);
    text-shadow: 0 0 3px var(--primary-glow);
}

.card-excerpt {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-glow);
    border: 1px solid var(--primary-glow);
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-glow);
    color: var(--bg-color);
    text-shadow: none;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.promo-text p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #05050d;
    color: #a0a0a0;
    padding: 2.5rem 0;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Article Page Specifics */
.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-header .tag {
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-top: 1rem;
}

.article-image {
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .main-nav { display: none; }
    h1 { font-size: 2.2rem; }
    .article-header h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .container { width: 95%; }
    .article-grid { grid-template-columns: 1fr; }
    .featured-article { flex-direction: column; }
}
