* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin !important;
    scrollbar-color: var(--primary-600) var(--dark-bg-secondary) !important;
}

html::-webkit-scrollbar {
    width: 12px !important;
}

html::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary) !important;
    border-radius: 10px !important;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-600), var(--warning-primary)) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-700), var(--warning-secondary)) !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-gradient-mid-1) 50%, var(--dark-bg-secondary) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--dark-text);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-gradient-mid-1) 50%, var(--dark-bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.stars-container {
    position: absolute;
    width: 360px;
    height: 360px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--white), 0 0 8px var(--primary-600);
    animation: starTwinkle 2s infinite;
}

.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.2s; }
.star:nth-child(3) { top: 40%; left: 10%; animation-delay: 0.4s; }
.star:nth-child(4) { top: 60%; left: 85%; animation-delay: 0.6s; }
.star:nth-child(5) { top: 80%; left: 30%; animation-delay: 0.8s; }
.star:nth-child(6) { top: 85%; left: 70%; animation-delay: 1s; }
.star:nth-child(7) { top: 30%; left: 50%; animation-delay: 1.2s; }
.star:nth-child(8) { top: 70%; left: 55%; animation-delay: 1.4s; }

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.saturn-system {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saturn-planet {
    width: 75px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 20px var(--primary-600));
    animation: planetFloat 3s ease-in-out infinite;
}

@keyframes planetFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.saturn-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    transform: rotateX(60deg);
}

.ring-1 {
    width: 165px;
    height: 165px;
    border-color: var(--primary-30);
    animation: ringRotate 3s linear infinite;
}

.ring-2 {
    width: 130px;
    height: 130px;
    border-color: var(--primary-secondary-40);
    animation: ringRotate 2.5s linear infinite reverse;
}

.ring-3 {
    width: 95px;
    height: 95px;
    border-color: var(--warning-primary);
    animation: ringRotate 2s linear infinite;
}

@keyframes ringRotate {
    0% {
        transform: rotateX(60deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

.loader-text {
    color: var(--primary-300);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: textPulse 1.5s ease-in-out infinite;
    text-align: center;
    margin-top: 1rem;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundPulse 10s ease infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(147, 51, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 51, 234, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

body .cyber-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

body .cyber-particles::before,
body .cyber-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

body .cyber-particles::before {
    background: var(--primary-500);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

body .cyber-particles::after {
    background: var(--accent-500);
    bottom: 20%;
    right: 10%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 1, 24, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid var(--primary-20);
    box-shadow: 0 4px 30px var(--primary-15), 0 0 0 1px rgba(147, 51, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-400), var(--accent-400), transparent);
    opacity: 0.5;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-600), transparent);
    opacity: 0.3;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    gap: 3rem;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.4));
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 6px 16px rgba(147, 51, 234, 0.6));
    transform: translateY(-2px) rotate(5deg);
}

.logo a {
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-300), var(--accent-300), var(--primary-400));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    transition: all 0.3s ease;
}

.logo a:hover {
    letter-spacing: 0.02em;
}

.search-container {
    flex: 1;
    max-width: 700px;
    position: relative;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--primary-20);
    border-radius: 50px;
    color: var(--dark-text);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--primary-10), 
                0 8px 24px var(--primary-20),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: var(--white-50);
    font-weight: 400;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: var(--dropdown-dark-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary-20);
    border-radius: 20px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 8px 32px var(--primary-dark-60);
    display: none;
}

.search-results.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--primary-15);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    color: var(--dark-text);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--primary-10);
    padding-left: 2rem;
}

.search-result-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--primary-300);
}

.search-result-path {
    font-size: 0.9rem;
    color: var(--white-50);
    text-transform: capitalize;
}

.portfolio-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.portfolio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.portfolio-btn:hover::before {
    left: 100%;
}

.portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
}

.portfolio-btn svg {
    transition: transform 0.3s ease;
}

.portfolio-btn:hover svg {
    transform: translateX(3px);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-20);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--white-80);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-btn:hover {
    border-color: var(--primary-400);
    transform: translateY(-2px) scale(1.05);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.social-btn svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.hero {
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
}

.hero h2 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-300), var(--accent-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.6rem;
    color: var(--white-70);
    font-weight: 300;
    letter-spacing: 0.01em;
}

.categories-grid {
    padding: 4rem 0 8rem;
}

.categories-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.category-card {
    background: var(--white-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-15);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-15), var(--accent-10));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-30);
    box-shadow: 0 20px 60px var(--primary-30), 0 0 0 1px var(--accent-20);
}

.category-card:hover h3 {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card h3 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-card p {
    color: var(--white-70);
    line-height: 1.7;
    font-size: 1.05rem;
}

.breadcrumb {
    padding: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--white-60);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.breadcrumb a:hover {
    color: var(--accent-400);
    background: var(--primary-10);
}

.breadcrumb .separator {
    color: var(--white-30);
}

.category-page h1,
.article-page h1 {
    font-size: 3.75rem;
    font-weight: 900;
    margin: 1.5rem 0 2.5rem;
    background: linear-gradient(135deg, var(--primary-300), var(--accent-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.category-description {
    background: var(--white-05);
    border: 1px solid var(--primary-15);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
    line-height: 1.8;
    font-size: 1.1rem;
}

.category-description pre {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--primary-20) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden !important;
    margin: 2.5rem 0 !important;
    position: relative !important;
    box-shadow: 0 8px 32px var(--primary-15) !important;
}

.category-description pre::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-400)) !important;
    z-index: 1 !important;
}

.category-description pre code,
.category-description pre > code {
    background: none !important;
    border: none !important;
    padding: 2rem !important;
    color: var(--white-90) !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    display: block !important;
    white-space: pre !important;
    font-weight: 400 !important;
    overflow-x: auto !important;
    box-shadow: none !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace !important;
}

.category-description code {
    background: linear-gradient(135deg, var(--primary-dark-40), var(--primary-dark-60));
    color: var(--accent-300);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-family: 'Fira Code', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--primary-25);
    font-weight: 500;
    box-shadow: 0 2px 4px var(--primary-10);
}

.category-description a {
    color: var(--primary-400);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.category-description a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    transition: width 0.3s ease;
}

.category-description a:hover {
    color: var(--accent-400);
}

.category-description a:hover::after {
    width: 100%;
}

.subdirectories,
.articles {
    margin: 4rem 0;
}

.subdirectories h2,
.articles h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-300);
}

.subdirs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.subdir-card {
    background: var(--white-05);
    border: 1px solid var(--primary-15);
    border-radius: 18px;
    padding: 2.25rem;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subdir-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.subdir-card:hover {
    background: var(--white-08);
    border-color: var(--accent-30);
    transform: translateX(10px);
    box-shadow: 0 8px 24px var(--primary-20);
}

.subdir-card:hover::before {
    transform: scaleY(1);
}

.subdir-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-300);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--white-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-15);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }
.article-card:nth-child(7) { animation-delay: 0.7s; }
.article-card:nth-child(8) { animation-delay: 0.8s; }
.article-card:nth-child(9) { animation-delay: 0.9s; }
.article-card:nth-child(10) { animation-delay: 1.0s; }

.article-card:hover {
    background: var(--white-08);
    border-color: var(--accent-30);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px var(--primary-25), 0 0 0 1px var(--accent-15);
}

.article-card:hover h3 {
    color: var(--accent-400);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.article-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-300);
    line-height: 1.3;
}

.article-card time {
    font-size: 0.9rem;
    color: var(--accent-400);
    font-weight: 600;
}

.article-card p {
    color: var(--white-70);
    line-height: 1.7;
    flex: 1;
    font-size: 1.05rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tag {
    background: var(--primary-15);
    color: var(--primary-300);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-20);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-20);
    border-color: var(--primary-30);
}

.article-content {
    background: var(--white-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-15);
    border-radius: 24px;
    padding: 3.5rem;
    margin: 2.5rem 0 5rem;
}

.article-header {
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--primary-15);
}

.article-header h1 {
    font-size: 3.25rem;
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    color: var(--white-60);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.article-meta time {
    color: var(--accent-400);
    font-weight: 600;
}

.article-meta .author {
    color: var(--primary-300);
    font-weight: 500;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--white-90);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin: 2.5rem 0 1.25rem;
    color: var(--primary-300);
    font-weight: 700;
}

.article-body h1 { font-size: 2.75rem; }
.article-body h2 { font-size: 2.25rem; }
.article-body h3 { font-size: 1.85rem; }
.article-body h4 { font-size: 1.5rem; }
.article-body h5 { font-size: 1.25rem; }
.article-body h6 { font-size: 1.1rem; }

.article-body p {
    margin: 1.75rem 0;
}

.article-body a {
    color: var(--primary-400);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.article-body a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    transition: width 0.3s ease;
}

.article-body a:hover {
    color: var(--accent-400);
}

.article-body a:hover::after {
    width: 100%;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2.5rem 0;
    border: 1px solid var(--primary-20);
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-body img:hover {
    border-color: var(--primary-30);
    box-shadow: 0 8px 24px var(--primary-20);
}

.category-description pre code::-webkit-scrollbar {
    height: 8px !important;
}

.category-description pre code::-webkit-scrollbar-track {
    background: rgba(10, 1, 24, 0.6) !important;
    border-radius: 4px !important;
}

.category-description pre code::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500)) !important;
    border-radius: 4px !important;
}

.category-description pre code::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--primary-600), var(--accent-600)) !important;
}

.article-body pre code::-webkit-scrollbar {
    height: 8px !important;
}

.article-body pre code::-webkit-scrollbar-track {
    background: rgba(10, 1, 24, 0.6) !important;
    border-radius: 4px !important;
}

.article-body pre code::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500)) !important;
    border-radius: 4px !important;
}

.article-body pre code::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--primary-600), var(--accent-600)) !important;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--primary-dark-80);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-600), var(--accent-600));
}

.article-body code {
    background: linear-gradient(135deg, var(--primary-dark-40), var(--primary-dark-60));
    color: var(--accent-300);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-family: 'Fira Code', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--primary-25);
    font-weight: 500;
    box-shadow: 0 2px 4px var(--primary-10);
}

.article-body pre {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--primary-20) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden !important;
    margin: 2.5rem 0 !important;
    position: relative !important;
    box-shadow: 0 8px 32px var(--primary-15) !important;
}

.article-body pre::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-400)) !important;
    z-index: 1 !important;
}

.article-body pre code,
.article-body pre > code {
    background: none !important;
    border: none !important;
    padding: 2rem !important;
    color: var(--white-90) !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    display: block !important;
    white-space: pre !important;
    font-weight: 400 !important;
    overflow-x: auto !important;
    box-shadow: none !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace !important;
}

.article-body pre code::-webkit-scrollbar {
    height: 8px !important;
}

.article-body pre code::-webkit-scrollbar-track {
    background: var(--primary-10) !important;
    border-radius: 4px !important;
}

.article-body pre code::-webkit-scrollbar-thumb {
    background: var(--primary-500) !important;
    border-radius: 4px !important;
}

.article-body pre code::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600) !important;
}

.article-body pre code.language-bash,
.article-body pre code.language-sh {
    color: var(--success-300);
}

.article-body pre code.language-python {
    color: var(--info-300);
}

.article-body pre code.language-javascript,
.article-body pre code.language-js {
    color: var(--accent-300);
}

.article-body pre code.language-php {
    color: var(--primary-300);
}

.article-body pre code.language-json {
    color: var(--accent-400);
}

.article-body pre code.language-yaml,
.article-body pre code.language-yml {
    color: var(--info-400);
}

.article-body ul,
.article-body ol {
    margin: 2rem 0 2rem 2.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin: 1rem 0;
    color: var(--white-90);
    padding-left: 0.5rem;
}

.category-description ul,
.category-description ol {
    margin: 2rem 0 2rem 2.5rem;
    padding-left: 1.5rem;
}

.category-description li {
    margin: 1rem 0;
    color: var(--white-90);
    padding-left: 0.5rem;
}

.article-body blockquote {
    background: var(--primary-10);
    border-left: 5px solid var(--accent-500);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 12px;
    font-style: italic;
    color: var(--white-80);
}

.article-body strong {
    color: var(--accent-300);
    font-weight: 700;
}

.article-body em {
    color: var(--primary-300);
}

.error-page {
    padding: 8rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
}

.error-content h1 {
    font-size: 10rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.error-content h2 {
    font-size: 2.75rem;
    color: var(--primary-300);
    margin-bottom: 1.5rem;
}

.error-content p {
    font-size: 1.35rem;
    color: var(--white-70);
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    color: var(--white);
    padding: 1.125rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--primary-40);
    border-color: var(--accent-400);
}

main {
    flex: 1;
    padding-bottom: 4rem;
}

.site-footer {
    background: linear-gradient(180deg, var(--primary-dark-40), var(--primary-dark-60));
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--primary-30);
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-500), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--primary-20);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-brand p {
    color: var(--white-60);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-section h4 {
    color: var(--primary-300);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section ul li a {
    color: var(--white-70);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-400);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--white-50);
    font-size: 0.9rem;
    margin: 0;
}

.footer-tagline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-style: italic;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 4rem 2rem;
}

.coming-soon-container {
    text-align: center;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out;
}

.coming-soon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--primary-08);
    border: 2px solid var(--primary-20);
    border-radius: 50%;
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--primary-40);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px var(--primary-0);
    }
}

.coming-soon-icon svg {
    color: var(--primary-400);
    animation: clockRotate 20s linear infinite;
}

@keyframes clockRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.coming-soon-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-secondary-60));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-container p {
    font-size: 1.1rem;
    color: var(--white-70);
    line-height: 1.6;
}

.article-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    min-height: calc(100vh - 200px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}


.comments-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    max-height: 90vh;
    background: linear-gradient(180deg, var(--dark-bg-secondary), var(--primary-dark-60));
    border: 1px solid var(--primary-30);
    border-left: none;
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 30px var(--black-40);
}

.comments-sidebar.collapsed {
    transform: translateX(-100%) translateY(-50%);
}

.sidebar-toggle {
    position: absolute;
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: 1px solid var(--primary-400);
    border-radius: 0 16px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    box-shadow: 4px 0 15px var(--primary-30);
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    box-shadow: 4px 0 20px var(--primary-50);
    transform: translateY(-50%) scale(1.05);
}

.toggle-count {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--warning-primary);
    color: var(--dark-bg-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.engagement-actions {
    padding: 1.5rem;
    background: var(--white-05);
    border: 2px solid var(--primary-20);
    border-radius: 50px;
    margin: 0 1.5rem;
    display: flex;
    justify-content: center;
}

.sidebar-like-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    color: var(--white-80);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-like-button:hover {
    background: var(--primary-08);
    color: var(--white-90);
}

.sidebar-like-button.liked {
    background: var(--primary-10);
    color: var(--primary-300);
}

.sidebar-like-button.liked .heart-icon {
    fill: var(--primary-400);
    stroke: var(--primary-400);
    animation: heartBeat 0.5s ease;
}

.comment-form {
    padding: 1rem;
    background: var(--white-05);
    border: 2px solid var(--primary-20);
    border-radius: 50px;
    margin: 0 1.5rem 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.comment-form textarea {
    flex: 1;
    width: 100%;
    min-height: 120px;
    padding: 1rem 1.25rem;
    background: var(--white-03);
    border: 1px solid var(--primary-15);
    border-radius: 20px;
    color: var(--white-90);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.comment-form textarea:focus {
    border-color: var(--primary-400);
    background: var(--white-08);
}

.comment-form textarea::placeholder {
    color: var(--white-40);
}

.submit-comment {
    width: 50px;
    height: 50px;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-30);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.submit-comment:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--primary-50);
}

.submit-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.char-count {
    display: block;
    text-align: right;
    color: var(--white-40);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--dark-bg-primary);
    border: 2px solid var(--primary-20);
    border-radius: 30px;
    margin: 0 1.5rem 1.5rem;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary-20);
    background: linear-gradient(135deg, var(--white-05), var(--white-08));
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-300), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.comment-count-badge {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px var(--primary-30);
}

.close-sidebar {
    width: 36px;
    height: 36px;
    background: var(--white-05);
    border: 1px solid var(--primary-15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white-60);
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: var(--primary-10);
    border-color: var(--primary-400);
    color: var(--primary-300);
    transform: rotate(90deg);
}

.comment-form {
    padding: 1rem;
    background: var(--dark-bg-secondary);
    border-bottom: 2px solid var(--primary-20);
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.comment-form textarea {
    flex: 1;
    width: 100%;
    min-height: 120px;
    padding: 1rem 1.5rem;
    background: var(--white-05);
    border: 2px solid var(--primary-20);
    border-radius: 20px;
    color: var(--white-90);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.comment-form textarea:focus {
    border-color: var(--primary-400);
    background: var(--white-08);
}

.comment-form textarea::placeholder {
    color: var(--white-40);
}

.char-count {
    display: block;
    color: var(--white-40);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.submit-comment {
    width: 50px;
    height: 50px;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-30);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.submit-comment:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--primary-50);
}

.submit-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--dark-bg-primary);
    border: 2px solid var(--primary-20);
    border-radius: 30px;
    margin: 0 1.5rem 1.5rem;
    margin-top: 0;
    max-height: 400px;
}

.sidebar-header {
    width: 8px;
}

.comments-list::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-track {
    background: var(--primary-dark-40);
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-500), var(--primary-600));
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-600), var(--primary-700));
}

.loading-comments {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--white-50);
    font-style: italic;
    font-size: 0.95rem;
}

.comment-item {
    background: linear-gradient(135deg, var(--white-05), var(--white-03));
    border: 1px solid var(--primary-20);
    border-radius: 20px;
    padding: 1.2rem;
    animation: slideInLeft 0.4s ease-out;
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: var(--primary-30);
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--primary-10);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--primary-10);
}

.comment-author {
    color: var(--primary-300);
    font-weight: 700;
    font-size: 0.9rem;
}

.comment-date {
    color: var(--white-40);
    font-size: 0.75rem;
}

.comment-text {
    color: var(--white-85);
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

.no-comments {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--white-40);
    font-style: italic;
    font-size: 0.95rem;
}

.article-main {
    flex: 1;
    min-width: 0;
    max-width: 900px;
}

.article-engagement {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-20);
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white-05);
    border: 1px solid var(--primary-20);
    border-radius: 50px;
    color: var(--white-80);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-button:hover {
    background: var(--primary-08);
    border-color: var(--primary-30);
    transform: translateY(-2px);
}

.like-button.liked {
    background: var(--primary-10);
    border-color: var(--primary-400);
}

.like-button.liked .heart-icon {
    fill: var(--primary-400);
    stroke: var(--primary-400);
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}


.no-comments {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--white-50);
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .article-wrapper {
        flex-direction: column;
    }
    
    .comments-sidebar {
        width: 100%;
        position: relative;
        height: 600px;
    }
}

.engagement-section {
    background: var(--primary-dark-40);
    border-top: 1px solid var(--primary-20);
    padding: 3rem 0;
    margin-top: auto;
}

.engagement-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.engagement-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white-05);
    border: 1px solid var(--primary-20);
    border-radius: 12px;
    color: var(--white-80);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-toggle:hover {
    background: var(--primary-08);
    border-color: var(--primary-30);
    transform: translateY(-2px);
}

.comment-toggle svg {
    transition: all 0.3s ease;
}

.comment-toggle:hover svg {
    transform: scale(1.1);
}

.comment-count {
    font-size: 1.1rem;
    color: var(--primary-300);
}

.comments-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.comments-container.active {
    max-height: 3000px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 1, 24, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-30);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: var(--accent-40);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.scroll-to-top .progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.scroll-to-top .progress-ring-circle {
    stroke-dasharray: 169.56; /* 2 * PI * 27 */
    stroke-dashoffset: 169.56;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-to-top .arrow-icon {
    position: relative;
    z-index: 1;
    color: var(--white);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.scroll-to-top:hover .arrow-icon {
    animation: none;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.related-content {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--primary-20);
}

.related-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-300);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--white-05);
    border: 1px solid var(--primary-15);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-card:hover {
    background: var(--white-08);
    border-color: var(--accent-30);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--primary-20);
}

.related-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-300);
}

.related-card p {
    color: var(--white-70);
    line-height: 1.6;
    font-size: 0.95rem;
}

.nested-items {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--primary-15);
}

.nested-items small {
    color: var(--accent-400);
    font-weight: 500;
    font-size: 0.85rem;
}

mark {
    background: var(--accent-30);
    color: var(--accent-100);
    padding: 0.125rem 0.35rem;
    border-radius: 4px;
}

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 15px;
    background: var(--primary-500);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px var(--primary-40);
}

.copy-code-btn:hover {
    background: var(--accent-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-40);
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-90);
    backdrop-filter: blur(10px);
}

.image-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem;
}

.image-modal-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 24px 80px var(--black-80);
}

.image-modal-close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: var(--white-10);
    color: var(--white);
    border: 2px solid var(--white-20);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.image-modal-close:hover {
    background: var(--primary-500);
    border-color: var(--accent-500);
    transform: rotate(90deg);
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results::-webkit-scrollbar {
    width: 10px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--primary-10);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-40);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--accent-40);
}

@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h2 {
        font-size: 3.5rem;
    }
    
    .categories-grid .container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .search-container {
        width: 100%;
        max-width: none;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero h2 {
        font-size: 2.75rem;
    }
    
    .hero p {
        font-size: 1.35rem;
    }
    
    .categories-grid .container {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .subdirs-grid {
        grid-template-columns: 1fr;
    }
    
    .category-page h1,
    .article-page h1 {
        font-size: 2.75rem;
    }
    
    .article-content {
        padding: 2.5rem 2rem;
    }
    
    .article-header h1 {
        font-size: 2.25rem;
    }
    
    .article-body {
        font-size: 1.05rem;
    }
    
    .error-content h1 {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .site-header .container {
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4.5rem 0 3rem;
    }
    
    .hero h2 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .error-content h1 {
        font-size: 4.5rem;
    }
}
@media (max-width: 1200px) {
    .article-wrapper {
        padding: 0 1.5rem;
    }
    
    .article-main {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .site-header .logo {
        font-size: 1.25rem;
    }
    
    .site-header img {
        height: 35px;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
    
    .portfolio-btn,
    .social-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .article-content {
        padding: 2.5rem 2rem;
    }
    
    .comments-sidebar {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .article-wrapper {
        padding: 0 1rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.75rem;
    }
    
    .article-body h3 {
        font-size: 1.5rem;
    }
    
    .article-body pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .copy-code-btn {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem;
    }
    
    .comments-sidebar {
        height: auto;
        min-height: 500px;
    }
    
    .sidebar-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .engagement-section {
        padding: 2rem 0;
    }
    
    .engagement-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .like-button,
    .comment-toggle {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .logo span {
        display: none;
    }
    
    .portfolio-btn span {
        display: none;
    }
    
    .portfolio-btn svg {
        margin-right: 0;
    }
    
    .breadcrumb {
        font-size: 0.875rem;
        flex-wrap: wrap;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .tags {
        flex-wrap: wrap;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem 0;
    }
    
    .logo img {
        height: 30px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .social-btn {
        padding: 0.5rem;
    }
    
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .article-content {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-body {
        font-size: 0.95rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
    }
    
    .article-body pre {
        font-size: 0.75rem;
        padding: 0.75rem;
        overflow-x: auto;
    }
    
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .progress-ring {
        width: 50px;
        height: 50px;
    }
    
    .arrow-icon {
        width: 20px;
        height: 20px;
    }
    
    .search-wrapper input {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .search-results {
        font-size: 0.875rem;
    }
    
    .result-title {
        font-size: 0.9rem;
    }
    
    .result-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-body {
        font-size: 0.9rem;
    }
    
    .article-body pre {
        font-size: 0.7rem;
    }
    
    .copy-code-btn {
        padding: 0.3rem;
    }
    
    .copy-code-btn svg {
        width: 14px;
        height: 14px;
    }
}