
/* ---
Theme: DarkNova
Font: Fira Code
Tone: Tech / Futuristic
--- */

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

/* CSS Variables */
:root {
    --primary-color: #0D9488; /* Teal */
    --secondary-color: #0F766E;
    --background-color: #111827; /* Dark Blue-Gray */
    --card-background: #1F2937;
    --text-color: #9CA3AF;
    --heading-color: #E5E7EB;
    --border-color: #374151;
    --footer-background: #000000;
    --footer-text: #D1D5DB;
    --font-family: 'Fira Code', monospace;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1.25rem; }
ul, ol { margin-left: 20px; margin-bottom: 1.25rem; }
li { margin-bottom: 0.5rem; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}
.site-title a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

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

.main-nav a {
    text-decoration: none;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    color: var(--heading-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Main Content Layout */
.body-container {
    padding: 2.5rem 0;
    display: grid;
    gap: 2.5rem;
}

main { flex: 1; }
aside { width: 100%; }

/* Hero Section */
.hero {
    background: linear-gradient(145deg, var(--card-background), #2a3649);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.hero h1 { margin-bottom: 0.5rem; }
.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

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

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

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(13, 148, 136, 0.4);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    filter: saturate(1.1);
}

.card-content {
    padding: 1.5rem;
}
.card-content h3 {
    margin-top: 0;
}
.card-content h3 a {
    color: var(--heading-color);
}
.card-content p {
    color: var(--text-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--card-background);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget li {
    margin-bottom: 0.75rem;
}
.sidebar-widget li a {
    font-weight: 400;
}
.sidebar-widget p {
    font-size: 0.95rem;
}

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

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: var(--footer-text);
}
.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Article Page & Static Pages */
.article-full, .page-content {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.article-header .meta {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}
.article-header .meta span {
    margin-right: 1rem;
}

.article-content img {
    margin: 1.5rem 0;
}
.article-content .logo {
    width: 120px;
    height: auto;
    margin: 1rem 0;
    background: #fff;
    padding: 10px;
}
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--heading-color);
}

.cta-section {
    background-color: #2a3649;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}
.cta-section p {
    margin: 0;
}

.contact-info p {
    font-size: 1.1rem;
}
.contact-info strong {
    color: var(--heading-color);
}

/* Responsive Design */
@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .body-container {
        grid-template-columns: 1fr 320px;
    }
    aside {
        width: 320px;
    }
    .homepage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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