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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 58, 138, 0.95) 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#neural-network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* Hero Section with Trending Article */
.hero-section {
    padding: 3rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 20px;
    background: rgba(168, 19, 39, 0.15);
    color: #A81327;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(168, 19, 39, 0.3);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #A81327 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Featured Article Card */
.featured-article {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(160, 29, 38, 0.3);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(168, 19, 39, 0.3);
}

.featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(168, 19, 39, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.featured-content {
    padding: 2rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-category {
    padding: 4px 12px;
    background: rgba(168, 19, 39, 0.2);
    color: #A81327;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-date {
    font-size: 0.85rem;
    color: #a0aec0;
    font-family: 'JetBrains Mono', monospace;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 0.95rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #A01D26 0%, #dc2622 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 29, 38, 0.5);
}

/* Top 3 Articles Section */
.top-articles-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.top-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(168, 19, 39, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(168, 19, 39, 0.3);
    border-color: #A81327;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(168, 19, 39, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    padding: 4px 10px;
    background: rgba(168, 19, 39, 0.2);
    color: #A81327;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    font-size: 0.8rem;
    color: #a0aec0;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Archive Section */
.archive-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(168, 19, 39, 0.2);
}

/* Search and Filter Controls */
.controls-section {
    margin-bottom: 3rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 19, 39, 0.2);
    backdrop-filter: blur(10px);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 19, 39, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: #A81327;
    box-shadow: 0 0 0 3px rgba(168, 19, 39, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

.search-button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #A81327 0%, #dc2622 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 19, 39, 0.5);
}

/* Topic Filters */
.topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.topic-filter {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 19, 39, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-filter:hover {
    background: rgba(168, 19, 39, 0.2);
    border-color: #A81327;
    transform: translateY(-2px);
}

.topic-filter.active {
    background: linear-gradient(135deg, #A81327 0%, #dc2622 100%);
    border-color: #A81327;
    box-shadow: 0 4px 15px rgba(168, 19, 39, 0.4);
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Loading/No Results */
.loading,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(168, 19, 39, 0.2);
    border-top-color: #A81327;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.05) rotate(5deg);
        opacity: 0.5;
    }
}

.no-results-icon {
    font-size: 4rem;
    color: rgba(168, 19, 39, 0.3);
    margin-bottom: 1rem;
}

.no-results-text {
    font-size: 1.25rem;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .top-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .top-articles-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .topic-filters {
        gap: 0.5rem;
    }

    .topic-filter {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}
