* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #0f0c29;
    --darker: #0a0817;
    --light: #ffffff;
    --gray: #a0a0b0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(102, 126, 234, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, #302b63 100%);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="white" opacity="0.3"/></svg>') repeat;
    animation: animateStars 100s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="white" opacity="0.2"/></svg>') repeat;
    animation: animateStars 150s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1.5" fill="white" opacity="0.1"/></svg>') repeat;
    animation: animateStars 200s linear infinite;
}

@keyframes animateStars {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-2000px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-content {
    animation: fadeInDown 1s ease;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.logo-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--shadow));
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 300;
}

.main {
    padding: 40px 0 80px;
    position: relative;
    z-index: 2;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    animation: fadeInUp 1s ease;
}

.article-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow);
    border-color: var(--primary);
}

.article-card:hover::before {
    opacity: 0.1;
}

.article-card-inner {
    position: relative;
    z-index: 1;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--light);
    line-height: 1.4;
}

.article-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-card:hover .read-more {
    color: var(--accent);
    transform: translateX(5px);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    animation: fadeInUp 1s ease;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    color: var(--gray);
    opacity: 0.6;
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--light);
}

.empty-state p {
    color: var(--gray);
    font-size: 1.1rem;
}

.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 2;
}

.footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card {
        padding: 25px;
    }

    .article-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 0 30px;
    }

    .logo {
        font-size: 2rem;
    }

    .article-card {
        padding: 20px;
    }
}