
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --border-color: rgba(75, 85, 99, 0.3);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.25);
    --accent-hover: #0ea5e9;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    padding-bottom: 60px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

/* Hero & Sections */
.hero {
    padding: 60px 0 40px 0;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 30px auto;
}

/* Author Box */
.author-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.author-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 4px;
}

.author-info .role {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Article Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 860px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

article {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

article h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

article h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 32px 0 16px 0;
    color: #fff;
}

article h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 24px 0 12px 0;
    color: #e2e8f0;
}

article p {
    margin-bottom: 20px;
    color: #cbd5e1;
}

article ul, article ol {
    margin: 0 0 20px 24px;
    color: #cbd5e1;
}

article li {
    margin-bottom: 8px;
}

article a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

article a:hover {
    color: var(--accent-hover);
}

/* Sidebar */
aside {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 12px;
}

.sidebar-widget a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.sidebar-widget a:hover {
    color: var(--accent);
}

/* Grid for Articles (Homepage) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card h3 a {
    color: #fff;
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--accent);
}

.card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}
