@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141b3d;
    --neon-pink: #ff006e;
    --neon-blue: #00d4ff;
    --neon-purple: #b24bff;
    --neon-green: #00ff88;
    --glass-bg: rgba(20, 30, 60, 0.7);
    --glass-border: rgba(0, 212, 255, 0.3);
    --glass-hover: rgba(30, 40, 70, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-glow: rgba(0, 212, 255, 0.15);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    padding: 40px 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated neon background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(178, 75, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr 320px;
    gap: 30px;
}

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px 40px;
    margin-bottom: 40px;
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(0, 212, 255, 0.3),
            0 0 40px rgba(0, 212, 255, 0.1),
            0 8px 32px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 30px rgba(178, 75, 255, 0.4),
            0 0 50px rgba(178, 75, 255, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.site-title {
    background: linear-gradient(
        90deg,
        var(--neon-blue) 0%,
        var(--neon-purple) 50%,
        var(--neon-pink) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonShimmer 3s linear infinite;
}

.site-title a {
    text-decoration: none;
    display: inline-block;
}

@keyframes neonShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

nav a {
    text-decoration: none;
    color: var(--neon-blue);
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

nav a:hover {
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
    transform: translateY(-2px);
    border-color: var(--neon-blue);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Sidebar Cards */
.sidebar, .right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 0 15px rgba(0, 212, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Statistics & Popular News */
.statistics h2, .popular-news h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--neon-blue);
    letter-spacing: -0.3px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.statistics ul {
    list-style: none;
}

.statistics li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 14px;
    color: var(--text-secondary);
}

.statistics li:last-child {
    border-bottom: none;
}

.popular-news ul {
    list-style: none;
}

.popular-news li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.popular-news li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-news a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    display: block;
    transition: all 0.3s ease;
}

.popular-news a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transform: translateX(5px);
}

/* Article Cards */
.article {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow:
        0 0 15px rgba(0, 212, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 24px;
}

.article:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.3),
        0 8px 40px rgba(0, 0, 0, 0.4);
}

.article-image {
    flex: 0 0 240px;
}

.article-image img {
    width: 240px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.article:hover .article-image img {
    transform: scale(1.05);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.article h2 a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.article h2 a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.article-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 14px;
    color: var(--neon-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.4),
        inset 0 0 15px rgba(0, 212, 255, 0.1);
}

/* Full Article */
.article-full {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow:
        0 0 15px rgba(0, 212, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

.article-full .article-image {
    flex: none;
    width: 100%;
    margin-bottom: 28px;
}

.article-full .article-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.article-full h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.6px;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.article-full .article-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 24px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-item {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95) 0%, rgba(20, 27, 61, 0.8) 50%, transparent 100%);
    padding: 60px 32px 32px;
    pointer-events: none;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
}

.carousel-caption h3 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.carousel-dot.active {
    background: var(--neon-blue);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
}

/* Photo Box */
.photo-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.photo-box:hover img {
    transform: scale(1.08);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 40px;
    font-size: 16px;
    color: var(--text-muted);
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article {
        flex-direction: column;
        gap: 20px;
    }

    .article-image {
        flex: none;
        width: 100%;
    }

    .article-image img {
        width: 100%;
        height: 220px;
    }

    header {
        padding: 24px 28px;
    }

    header h1 {
        font-size: 26px;
    }

    .site-title {
        background-size: 200% auto;
    }

    nav {
        gap: 6px;
    }

    nav a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .carousel {
        height: 300px;
    }

    .carousel-caption h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    header {
        padding: 20px 24px;
        border-radius: 20px;
    }

    header h1 {
        font-size: 22px;
    }

    .site-title {
        animation-duration: 4s;
    }

    .article-full h2 {
        font-size: 26px;
    }

    .glass-card {
        padding: 24px;
        border-radius: 18px;
    }

    .article {
        padding: 20px;
        border-radius: 20px;
    }

    .carousel {
        height: 240px;
    }

    .carousel-caption {
        padding: 40px 20px 20px;
    }

    .carousel-caption h3 {
        font-size: 18px;
    }

    .carousel-dots {
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 24px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article, .glass-card {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}
