:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1f1f1f;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --accent-primary: #ff0080;
    --accent-secondary: #00ffaa;
    --accent-gold: #ffd700;
    --border-color: #333333;
    --shadow-glow: 0 0 20px rgba(255, 0, 128, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-primary);
    padding: 20px 0;
    box-shadow: var(--shadow-glow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
    transition: text-shadow 0.3s;
}

.logo a:hover {
    text-shadow: 0 0 20px rgba(255, 0, 128, 0.8);
}

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav a:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* Main */
.main {
    flex: 1;
    padding: 40px 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.article-card-content {
    padding: 25px;
}

.article-card-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.article-card-title a:hover {
    color: var(--accent-primary);
}

.article-card-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.article-date {
    color: var(--text-muted);
    font-size: 14px;
}

.read-more {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

/* Article Single */
.article-single {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.article-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-primary);
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

.article-date {
    color: var(--text-muted);
    font-size: 16px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--accent-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.article-content h1 {
    font-size: 36px;
}

.article-content h2 {
    font-size: 32px;
}

.article-content h3 {
    font-size: 26px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.article-content strong {
    color: var(--accent-secondary);
    font-weight: bold;
}

.article-content a {
    color: var(--accent-secondary);
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: var(--accent-primary);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th,
.article-content table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-content table th {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    font-weight: bold;
}

.article-content table tr:hover {
    background: var(--bg-hover);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-secondary);
}

.article-content pre {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow-card);
}

.article-footer {
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    margin-top: 40px;
}

.back-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-block;
}

.back-link:hover {
    color: var(--accent-primary);
    transform: translateX(-5px);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 60px;
}

.footer-nav {
    margin-top: 15px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent-secondary);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav a {
        margin-left: 10px;
        margin-right: 10px;
    }
}

