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

:root {
    --bg-dark: #0a0e27;
    --bg-card: #141b3d;
    --accent-cyan: #00ffff;
    --accent-purple: #9d00ff;
    --text-primary: #ffffff;
    --text-secondary: #b8c1ec;
    --radius: 12px;
    --glow: 0 0 20px rgba(0, 255, 255, 0.5);
}

body {
    font-family: 'Segoe UI', -apple-system, system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accent {
    color: var(--accent-purple);
    text-shadow: 0 0 20px rgba(157, 0, 255, 0.6);
}

.glow-text {
    text-shadow: var(--glow);
}

nav {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 101;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 102;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-purple);
    background: rgba(157, 0, 255, 0.15);
    text-shadow: 0 0 10px rgba(157, 0, 255, 0.8);
}

.nav-admin {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    font-weight: 700;
}

.nav-admin:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.6);
}

.hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 0 80px;
}

.article-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .article-card:hover {
        transform: translateY(-8px);
    }
    .article-card:hover .card-glow {
        opacity: 1;
    }
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    z-index: 1;
}

.category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 255, 255, 0.2);
    color: var(--accent-cyan);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.likes {
    color: var(--accent-purple);
    font-weight: 600;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hashtag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(157, 0, 255, 0.15);
    color: var(--accent-purple);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(157, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.hashtag:hover {
    background: rgba(157, 0, 255, 0.25);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.4);
    transform: translateY(-2px);
}

.single-article {
    max-width: 800px;
    margin: 40px auto;
    background: rgba(20, 27, 61, 0.8);
    border-radius: var(--radius);
    padding: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.article-title-large {
    font-size: 42px;
    font-weight: 900;
    margin: 16px 0 20px;
    line-height: 1.2;
}

.article-meta-large {
    font-size: 15px;
    color: var(--text-secondary);
}

.separator {
    margin: 0 10px;
}

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

.article-footer {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--accent-cyan);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: var(--glow);
}

.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: rgba(10, 14, 39, 0.8);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .articles-grid { grid-template-columns: 1fr; }
    .single-article { padding: 30px 20px; }
    .article-title-large { font-size: 28px; }
    .site-header .container { flex-direction: column; gap: 20px; }
    nav { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .nav-link { padding: 8px 14px; font-size: 12px; }
}