:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --border-color: rgba(75, 85, 99, 0.4);
    --accent: #38bdf8;
    --accent-hover: #0284c7;
    --accent-glow: rgba(56, 189, 248, 0.25);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --link-color: #38bdf8;
    --link-hover: #7dd3fc;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "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-main);
    line-height: 1.7;
    font-size: 1.05rem;
    padding-bottom: 60px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism 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: 18px 0;
}

header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding: 64px 0 40px;
    text-align: center;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
    margin-bottom: 48px;
}

.hero-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto;
}

/* Main Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

/* Articles Feed */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.article-card .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-card h2 {
    font-size: 1.6rem;
    line-height: 1.35;
    margin-bottom: 14px;
}

.article-card h2 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h2 a:hover {
    color: var(--accent);
}

.article-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article Detail Page */
.article-full {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 44px;
    backdrop-filter: blur(10px);
}

.article-full h1 {
    font-size: 2.3rem;
    line-height: 1.28;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    color: #ffffff;
}

.article-full .meta-bar {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
    margin-bottom: 32px;
}

.article-full .content p {
    margin-bottom: 22px;
    color: #d1d5db;
}

.article-full .content h2 {
    font-size: 1.55rem;
    margin: 36px 0 16px;
    color: #ffffff;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
    padding-bottom: 8px;
}

.article-full .content h3 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: #e5e7eb;
}

.article-full .content a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-full .content a:hover {
    color: var(--link-hover);
}

/* Sidebar */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
}

.sidebar-widget h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
    padding-bottom: 10px;
}

.author-bio {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-name {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.author-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 64px;
    padding-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 12px;
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 860px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .article-full {
        padding: 24px;
    }
}