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

:root {
    --white-soft: rgba(255, 255, 255, 0.16);
    --white-medium: rgba(255, 255, 255, 0.28);
    --white-strong: rgba(255, 255, 255, 0.45);
    --border-light: rgba(255, 255, 255, 0.35);
    --shadow-main: 0 18px 55px rgba(20, 25, 70, 0.32);
    --radius-lg: 30px;
    --radius-md: 20px;
    --text-light: #ffffff;
}

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

html,
body {
    width: 100%;
    height: 100%;
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #4facfe 75%,
        #00f2fe 100%
    );
    background-size: 400% 400%;
    animation: gradientMove 16s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.navbar {
    position: relative;
    z-index: 10;
    margin: 1rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    background: var(--white-soft);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-main);
}

.navbar-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.navbar-title {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.nav-btn {
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0.75rem 1.65rem;
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-light);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    background: var(--white-medium);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.nav-btn.active {
    background: var(--white-strong);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 10px 30px rgba(255, 255, 255, 0.25),
        inset 0 0 25px rgba(255, 255, 255, 0.16);
}

.articles-container {
    flex: 1;
    position: relative;
    padding: 0 1rem 1rem;
    overflow: hidden;
}

.article-panel {
    width: 100%;
    height: 100%;
    display: block;
    animation: fadeInUp 0.45s ease both;
}

.article-panel.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-glass {
    width: min(1200px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        var(--shadow-main),
        inset 0 0 70px rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.article-glass::-webkit-scrollbar {
    width: 10px;
}

.article-glass::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.article-glass::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.38);
    border-radius: 999px;
}

.article-glass::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.58);
}

.article-header-section {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 2rem;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.article-header-section h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.35rem, 4vw, 2.25rem);
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.article-body {
    max-width: 950px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.85;
}

.article-body p {
    margin-bottom: 1.4rem;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

.article-body strong {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

@media (max-width: 768px) {
    html,
    body {
        overflow: hidden;
    }

    .navbar {
        margin: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .navbar-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .nav-buttons {
        justify-content: center;
    }

    .nav-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .articles-container {
        padding: 0 0.5rem 0.5rem;
    }

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

    .article-header-section {
        border-radius: 16px;
    }

    .article-meta-info {
        flex-direction: column;
    }

    .meta-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-buttons {
        width: 100%;
    }

    .nav-btn {
        flex: 1;
        padding: 0.6rem 0.75rem;
    }

    .article-body {
        line-height: 1.65;
    }
}
