:root {
    --primary-color: #00e5ff; /* Cyan accent */
    --secondary-color: #ff4081; /* Pink accent */
    --background-color: #121212; /* Dark background */
    --surface-color: #1e1e1e; /* Slightly lighter surface */
    --text-color: #e0e0e0; /* Light gray text */
    --light-text-color: #757575; /* Dimmer gray for meta */
    --border-color: #333333;
    --font-family: 'JetBrains Mono', monospace;
    --header-height: 70px;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; }
a { color: var(--primary-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #fff; text-shadow: 0 0 5px var(--primary-color); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style-position: inside; }

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

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

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

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
}

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


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

.main-content, .sidebar {
    background-color: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    border-color: var(--primary-color);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h2 { font-size: 1.4rem; margin-top: 0; }
.card-content p { flex-grow: 1; }

.read-more-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1rem;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-shadow: none;
}


/* Sidebar */
.sidebar-widget {
    margin-bottom: 2.5rem;
}
.sidebar-widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
}

.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { margin-bottom: 0.75rem; }
.sidebar-widget ul li a::before {
    content: '>>';
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Article Page Specifics */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.article-meta span { margin-right: 1rem; }
.article-content h2, .article-content h3 { margin-top: 2rem; }

.cta-box {
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}
.cta-box p { margin-bottom: 1rem; }
.cta-box .read-more-btn { align-self: center; }

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

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

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