:root {
    --bg: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
    --text: #0d1117;
    --text-muted: #57606a;
    --accent: #e50914;
    --card-bg: rgba(255, 255, 255, 0.35);
    --card-border: rgba(255, 255, 255, 0.45);
    --blur: blur(16px);
    --shadow-neo: 8px 8px 16px rgba(0, 0, 0, 0.08), -8px -8px 16px rgba(255, 255, 255, 0.6);
    --shadow-neo-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.06), inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
    --bg: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #ff4d4d;
    --card-bg: rgba(22, 27, 34, 0.45);
    --card-border: rgba(48, 54, 61, 0.6);
    --shadow-neo: 8px 8px 16px rgba(0, 0, 0, 0.5), -8px -8px 16px rgba(40, 40, 40, 0.3);
    --shadow-neo-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.4), inset -4px -4px 8px rgba(60, 60, 60, 0.2);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: all 0.5s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    padding: 2rem 0 2rem;
    text-align: center;
    position: relative;
    padding-top: 0 !important;
}

h1 {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #e50914;
}

.theme-toggle {
    position: absolute;
    top: 3.5rem;
    right: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--blur);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow-neo);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-neo-inset);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 6rem;
    border-radius: 4px;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-neo);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem 2.25rem 2.5rem;
}

.tag {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-neo-inset);
}

.title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.author {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Article */
.article {
    padding: 1rem 0 10rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 4rem;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.article-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 1rem;
}

.article-img {
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
    border-radius: 2rem;
    margin: 3rem 0 4rem;
    box-shadow: var(--shadow-neo);
}

.article-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.article-author {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.22rem;
}

.article-body p {
    margin-bottom: 2em;
}

.article-body h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 3.5rem 0 1.4rem;
}

/* Footer */
footer {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border-top: 1px solid var(--card-border);
    padding: 7rem 0 1rem;
    color: var(--text-muted);
}

.footer-inner {
    display: grid;
    gap: 4rem;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--card-border);
}

