/* --- Variables & Reset --- */
:root {
    --bg-color: #0a0f1e;
    --surface-color: #1a2035;
    --primary-color: #00f6ff;
    --accent-color: #ff00ff;
    --text-color: #c0c5d0;
    --text-muted-color: #838a9b;
    --border-color: rgba(0, 246, 255, 0.2);
    --font-family-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family-mono);
    line-height: 1.7;
}

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

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

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

h1, h2, h3 {
    font-family: var(--font-family-mono);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 246, 255, 0.5);
}

h1 { font-size: 2.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; color: var(--primary-color); }

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

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

.logo a {
    font-family: var(--font-family-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 8px var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

.main-nav a {
    font-weight: 400;
    color: var(--text-muted-color);
    font-size: 1rem;
    padding-bottom: 0.5rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* --- Main Layout --- */
main.container {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

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

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

@media (min-width: 1200px) {
    .main-content > .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: var(--surface-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 246, 255, 0.1);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 246, 255, 0.3);
}

.article-card a {
    color: var(--text-color);
    text-decoration: none;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: saturate(1.2);
    transition: transform 0.3s ease;
}
.article-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted-color);
}

/* --- Category & Article Page --- */
.page-header {
    margin-bottom: 2rem;
}
.page-header h1 {
    font-size: 2.2rem;
}

.article-list {
    grid-template-columns: 1fr;
}

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

.article-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.article-meta {
    margin-bottom: 1.5rem;
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

.article-meta span {
    margin-right: 1rem;
}

.article-full-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 2.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.article-body h3 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* --- Sidebar --- */
.sidebar .promo-box, .sidebar .related-articles {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.sidebar h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

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

.related-articles {
    margin-top: 2rem;
}

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

/* --- Footer --- */
.site-footer {
    background-color: #050810;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
    color: var(--text-muted-color);
    border-top: 1px solid var(--border-color);
}
.site-footer .container {
    color: #838a9b;
}