:root {
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --bg-dark: #0a0e14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-glow: 0 0 20px rgba(79, 172, 254, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(10, 14, 20, 0.7), rgba(10, 14, 20, 0.9)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--glass-border);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5));
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: -50px auto 40px;
    padding: 0 20px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: var(--accent-glow);
}

.article-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.9;
}

/* Article Detail */
.detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.detail-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.detail-content h2 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.detail-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.detail-content pre {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.detail-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    color: #ce9178;
}

/* Footer */
footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .detail-container {
        padding: 20px;
        margin: 20px;
    }
    .detail-header h1 {
        font-size: 1.8rem;
    }
}
