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

:root {
    --bg-dark: #1A1A2E;
    --primary-accent: #FF007A;
    --secondary-accent: #00F0FF;
    --text-light: #FFFFFF;
    --text-muted: #a0a0c0;
    --card-bg: #1F1F3D;
    --border-color: #2a2a4a;
}

/* --- Base Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 900;
    line-height: 1.2;
}

/* --- Header & Navigation --- */
.site-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px solid var(--border-color);
}

.site-header h1 {
    font-size: 4rem;
    margin: 0;
    background: -webkit-linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.main-nav {
    background-color: var(--card-bg);
    padding: 1rem 0;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary-accent);
}

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

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

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

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

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Article Card --- */
.article-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-accent);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card .card-content {
    padding: 1.5rem;
}

.card-content .category {
    color: var(--primary-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.card-content h3 a {
    color: var(--text-light);
}

.card-content .read-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

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

.featured-article h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
}

.featured-article h2 a {
     color: var(--text-light);
}

.featured-article p {
    color: var(--text-muted);
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 1.5rem;
}

.sidebar-widget {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-accent);
}

.sidebar-widget p {
    color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 2px solid var(--border-color);
    background-color: #111122;
}

/* --- Category & Article Page Specifics --- */
.page-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.article-page header {
    margin-bottom: 2rem;
}
.article-page header .category {
     color: var(--primary-accent);
    font-weight: 700;
    text-transform: uppercase;
}
.article-page header h1 {
    font-size: 3.5rem;
    margin: 0.5rem 0;
}
.article-page header .meta {
    color: var(--text-muted);
}
.article-page .featured-image {
    border-radius: 8px;
    margin-bottom: 2rem;
}
.prose {
    font-size: 1.1rem;
}
.prose h2 {
    font-size: 2rem;
    margin-top: 2em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-color);
}
.prose p {
    margin-bottom: 1.5em;
}
.prose a {
    text-decoration: underline;
    font-weight: 700;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.related-articles li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.related-articles li:last-child {
    border-bottom: none;
}
.related-articles a {
    color: var(--text-light);
    font-weight: 700;
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .site-header h1 { font-size: 3rem; }
    .page-title, .article-page header h1 { font-size: 2.5rem; }
}

@media (max-width: 767px) {
    .site-header h1 { font-size: 2.5rem; }
    .main-nav ul { justify-content: space-around; }
}
