/* TorGuard Support Center Custom Styles */

/* Font Configuration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Custom Variables */
:root {
    --torguard-green: #00FF41;
    --torguard-blue: #0066FF;
    --torguard-darkgray: #0a0a0a;
    --torguard-gray: #1a1a1a;
    --max-article-width: 65ch;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base Typography */
body {
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Default dark theme */
    background-color: #000000;
    color: #ffffff;
}

/* Light Theme Override - Only for article content */
/* Note: Light theme is now applied via JavaScript to specific sections only */

/* Article Styles - Enhanced for maximum readability */
.article-content {
    @apply text-gray-300;
    font-size: 1.25rem; /* Increased from 1.0625rem */
    line-height: 1.85;
    font-weight: 400;
    letter-spacing: -0.015em;
}

/* Headings with gradient and glow */
.article-content h1 {
    @apply text-5xl md:text-6xl font-bold mb-10 tracking-tight;
    background: linear-gradient(135deg, #fff, #00ff41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.5));
    position: relative;
    padding-bottom: 1.5rem;
}

.article-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--torguard-green), var(--torguard-blue));
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* H2 Headings - Clean and Badass */
.article-content h2 {
    font-size: 2.5rem !important; /* 40px */
    line-height: 1.2 !important;
    font-weight: 900 !important;
    color: #ffffff;
    position: relative;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0a0a0a 0%, rgba(0, 255, 65, 0.03) 100%);
    border-radius: 1rem;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: block;
    width: 100%;
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.1),
                0 10px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .article-content h2 {
        font-size: 3rem !important; /* 48px on desktop */
    }
}

/* Gradient border effect */
.article-content h2::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--torguard-green), var(--torguard-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Glow effect on hover */
.article-content h2:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.3),
                0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 120px rgba(0, 255, 65, 0.05);
}

.article-content h2:hover::before {
    opacity: 0.6;
}

/* Left accent bar */
.article-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 5px;
    background: linear-gradient(to bottom, var(--torguard-green), var(--torguard-blue));
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    transition: all 0.4s ease;
}

.article-content h2:hover::after {
    width: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.8),
                0 0 60px rgba(0, 255, 65, 0.4);
}

.article-content h3 {
    font-size: 1.875rem !important; /* 30px */
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .article-content h3 {
        font-size: 2.25rem !important; /* 36px on desktop */
    }
}

.article-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--torguard-green);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.article-content h3:hover::after {
    width: 100%;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Enhanced paragraph styling */
.article-content p {
    @apply mb-8 text-gray-300;
    font-size: 1.125rem !important; /* 18px - proper hierarchy under headings */
    line-height: 1.9;
    letter-spacing: -0.015em;
    font-weight: 400;
    transition: all 0.2s ease;
}

.article-content p:hover {
    @apply text-gray-200;
}

@media (min-width: 768px) {
    .article-content p {
        font-size: 1.25rem !important; /* 20px on desktop */
    }
}

/* Enhanced list styling */
.article-content ol,
.article-content ul {
    @apply mb-10 space-y-5;
    padding-left: 2rem;
}

.article-content li {
    @apply text-gray-300 relative;
    font-size: 1.125rem !important; /* 18px - matches paragraph size */
    line-height: 1.9;
    letter-spacing: -0.015em;
    transition: all 0.3s ease;
    list-style: none;
}

@media (min-width: 768px) {
    .article-content li {
        font-size: 1.25rem !important; /* 20px on desktop */
    }
}

/* Unordered lists with custom bullets */
.article-content ul li {
    position: relative;
    padding-left: 1.5rem;
}

.article-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--torguard-green);
    font-size: 1.5rem;
    top: -2px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.5));
}

/* Ordered lists - clean numbered style */
.article-content > ol,
.article-content div > ol,
.article-content section > ol {
    counter-reset: section;
}

.article-content > ol > li,
.article-content div > ol > li,
.article-content section > ol > li {
    counter-increment: section;
    padding-left: 3rem;
}

.article-content > ol > li::before,
.article-content div > ol > li::before,
.article-content section > ol > li::before {
    content: counter(section) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--torguard-green), var(--torguard-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.6));
    transition: all 0.3s ease;
}

.article-content li:hover {
    @apply text-gray-100;
    transform: translateX(5px);
}

.article-content ul li:hover::before {
    transform: scale(1.3) translateX(-3px);
    color: #00ff41;
}

.article-content > ol > li:hover::before,
.article-content div > ol > li:hover::before,
.article-content section > ol > li:hover::before {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

/* Hide numbers from structural ol elements used for steps */
.article-content h2 + ol,
.article-content h3 + ol,
.article-content h4 + ol,
.article-content p + ol {
    list-style: none !important;
    counter-reset: unset !important;
}

.article-content h2 + ol > li,
.article-content h3 + ol > li,
.article-content h4 + ol > li,
.article-content p + ol > li {
    padding-left: 0 !important;
}

.article-content h2 + ol > li::before,
.article-content h3 + ol > li::before,
.article-content h4 + ol > li::before,
.article-content p + ol > li::before {
    display: none !important;
    content: none !important;
}

/* Strong and emphasis */
.article-content strong {
    @apply font-bold text-white;
    position: relative;
    padding: 0 3px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.article-content strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--torguard-green), transparent);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.article-content strong:hover::after {
    opacity: 1;
    height: 40%;
    bottom: -2px;
}

.article-content em {
    @apply not-italic text-gray-100;
    font-style: normal;
    font-weight: 500;
    background: linear-gradient(120deg, transparent 0%, rgba(0, 255, 65, 0.1) 50%, transparent 100%);
    padding: 0 4px;
    border-radius: 3px;
}

/* Links with animated underline */
.article-content a {
    @apply text-torguard-green font-medium relative inline-block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.article-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--torguard-green), var(--torguard-blue));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-content a:hover {
    @apply text-white;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.article-content a:hover::after {
    width: 100%;
}

/* Images with cool effects */
.article-content img {
    @apply rounded-xl my-12 max-w-full h-auto;
    border: 2px solid transparent;
    background: linear-gradient(#000, #000) padding-box,
                linear-gradient(135deg, var(--torguard-green), var(--torguard-blue)) border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(0, 255, 65, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 80px rgba(0, 255, 65, 0.3);
}

.article-content figure {
    @apply my-8;
}

.article-content figcaption {
    @apply text-sm text-gray-400 mt-2 text-center italic;
}

/* Inline code */
.article-content code {
    @apply px-2 py-1 rounded text-sm;
    background: rgba(0, 255, 65, 0.1);
    color: var(--torguard-green);
    border: 1px solid rgba(0, 255, 65, 0.2);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-weight: 500;
}

/* Code blocks - Terminal Style */
.article-content pre {
    @apply my-8 rounded-xl overflow-hidden;
    position: relative;
    background: #0a0a0a;
    border: 2px solid rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.1),
                0 20px 60px rgba(0, 0, 0, 0.8),
                inset 0 0 40px rgba(0, 255, 65, 0.02);
    padding: 0;
}

/* Terminal header */
.article-content pre::before {
    content: '';
    display: block;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 102, 255, 0.08));
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    position: relative;
}

/* Terminal dots */
.article-content pre::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 1.5rem;
    width: 12px;
    height: 12px;
    background: #ff5f56;
    border-radius: 50%;
    box-shadow: 20px 0 0 #ffbd2e,
                40px 0 0 #27c93f;
    z-index: 10;
}

/* Add terminal title */
.article-content pre[data-title]::before {
    content: attr(data-title);
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 10;
}

.article-content pre code {
    @apply block p-6 text-gray-100;
    background: transparent;
    border: none;
    font-size: 1rem;
    line-height: 1.7;
    font-family: 'Fira Code', 'Consolas', monospace;
    letter-spacing: 0.02em;
    padding-top: 2.5rem;
}

/* Enhanced Blockquotes */
.article-content blockquote {
    @apply my-10 p-6 rounded-xl;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 102, 255, 0.05));
    border-left: 4px solid var(--torguard-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: var(--torguard-green);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.article-content blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    transform: translate(30px, -30px);
}

.article-content blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Enhanced Tables - Badass and Visible */
.article-content table {
    @apply w-full my-10 border-collapse overflow-visible;
    background: rgba(10, 10, 10, 0.95) !important;
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 1rem;
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.1),
                0 20px 60px rgba(0, 0, 0, 0.8),
                inset 0 0 20px rgba(0, 255, 65, 0.05);
    animation: tableSlideIn 0.6s ease-out forwards;
    position: relative;
    isolation: isolate;
}

/* Remove the spinning propeller effect - just a simple glow on hover */
.article-content table:hover {
    border-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.2),
                0 20px 60px rgba(0, 0, 0, 0.9),
                0 0 40px rgba(0, 255, 65, 0.15);
}

@keyframes tableSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.article-content thead {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 102, 255, 0.08));
    backdrop-filter: blur(10px);
}

.article-content th {
    @apply px-6 py-5 text-left font-black uppercase tracking-wider;
    color: #ffffff;
    font-size: 0.875rem;
    border-bottom: 3px solid rgba(0, 255, 65, 0.4);
    position: relative;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.article-content th::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--torguard-green), var(--torguard-blue), var(--torguard-green));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.article-content th:hover::after {
    transform: scaleX(1);
    animation: shimmer 2s linear infinite;
}

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

.article-content td {
    @apply px-6 py-4;
    color: #e0e0e0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.article-content tbody tr {
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.article-content tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--torguard-green), var(--torguard-blue));
    transition: height 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.article-content tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
}

.article-content tbody tr:hover::before {
    height: 100%;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Modern selection styles */
::selection {
    background: rgba(0, 255, 65, 0.3);
    color: white;
}

/* Smooth transitions for all interactive elements */
.article-content * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add subtle animations to content as it appears */
.article-content > * {
    animation: fadeInUp 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.article-content > *:nth-child(1) { animation-delay: 0.05s; }
.article-content > *:nth-child(2) { animation-delay: 0.1s; }
.article-content > *:nth-child(3) { animation-delay: 0.15s; }
.article-content > *:nth-child(4) { animation-delay: 0.2s; }
.article-content > *:nth-child(5) { animation-delay: 0.25s; }
.article-content > *:nth-child(6) { animation-delay: 0.3s; }
.article-content > *:nth-child(7) { animation-delay: 0.35s; }
.article-content > *:nth-child(8) { animation-delay: 0.4s; }
.article-content > *:nth-child(n+9) { animation-delay: 0.45s; }

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

/* Modern focus states */
.article-content a:focus,
.article-content button:focus {
    outline: 2px solid var(--torguard-green);
    outline-offset: 2px;
}

/* Improve table visibility further */
.article-content table {
    background-color: #0a0a0a !important;
    background-image: none !important;
}

.article-content table * {
    color: #ffffff !important;
    background-color: transparent !important;
}

.article-content tbody tr {
    background-color: transparent !important;
}

.article-content tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.article-content td {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.article-content tbody tr:hover td {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* Alternating row colors for better readability */
.article-content tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.article-content tbody tr:nth-child(even):hover {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
}

/* Table of Contents - Badass Edition */
#table-of-contents {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    animation: tocSlideIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes tocSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile TOC styling */
@media (max-width: 1024px) {
    #table-of-contents {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }
}

/* Mobile TOC specific styling */
#table-of-contents-mobile {
    animation: none;
    opacity: 1;
}

#table-of-contents-mobile .toc-header {
    display: none;
}

#table-of-contents-mobile ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#table-of-contents-mobile a {
    @apply block px-3 py-2 text-gray-300 rounded-lg transition-all duration-300;
    font-size: 0.875rem;
}

#table-of-contents-mobile a:hover {
    @apply text-white pl-5;
    background: rgba(0, 255, 65, 0.1);
}

#table-of-contents-mobile .ml-4 {
    margin-left: 1.5rem;
}

#table-of-contents-mobile .toc-icon {
    display: inline-block;
    width: 1.25rem;
    margin-right: 0.5rem;
    text-align: center;
    opacity: 0.7;
}

#table-of-contents-mobile a.active {
    @apply text-torguard-green font-semibold;
    background: rgba(0, 255, 65, 0.15);
}

#table-of-contents-mobile a.active .toc-icon {
    opacity: 1;
}

#table-of-contents h2 {
    @apply text-lg font-bold text-white mb-4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--torguard-green), var(--torguard-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

#table-of-contents ul {
    @apply space-y-2;
}

#table-of-contents li {
    position: relative;
    transition: all 0.3s ease;
}

#table-of-contents a {
    @apply block px-4 py-2 text-gray-400 rounded-lg transition-all duration-300;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

#table-of-contents a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--torguard-green), var(--torguard-blue));
    transition: height 0.3s ease;
}

#table-of-contents a:hover {
    @apply text-white pl-6;
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

#table-of-contents a:hover::before {
    height: 100%;
}

/* Nested levels */
#table-of-contents .ml-4 {
    margin-left: 1.5rem;
}

#table-of-contents .ml-4 a {
    font-size: 0.8125rem;
    opacity: 0.9;
}





/* Enhanced Alert Boxes */
.alert {
    @apply rounded-2xl p-8 mb-10 border-2;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    font-size: 1.125rem;
    line-height: 1.8;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: alertSweep 3s infinite;
}

@keyframes alertSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-info {
    @apply border-blue-500/40 text-blue-200;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.alert-info:hover {
    @apply border-blue-500/60;
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.3);
}

.alert-warning {
    @apply border-yellow-500/40 text-yellow-200;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.alert-success {
    @apply border-green-500/40 text-green-200;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.alert-danger {
    @apply border-red-500/40 text-red-200;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.alert strong {
    @apply font-bold;
    background: none;
    padding: 0;
}

/* Glowing Text Effect */
.glow-text-green {
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5), 0 0 40px rgba(0, 255, 65, 0.3);
}

/* Copy button for code blocks */
.copy-button {
    position: absolute !important;
    top: 3.5rem !important;
    right: 1rem !important;
    z-index: 20;
    padding: 0.5rem 1rem !important;
    background: linear-gradient(135deg, var(--torguard-green), var(--torguard-blue)) !important;
    color: black !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* Ensure pre blocks have proper positioning */
.article-content pre {
    position: relative !important;
}

.copy-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 30px rgba(0, 255, 65, 0.5) !important;
    background: linear-gradient(135deg, var(--torguard-blue), var(--torguard-green)) !important;
}

.copy-button:active {
    transform: translateY(0) !important;
}

/* Code block hover effects */
.article-content pre:hover {
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.2),
                0 25px 70px rgba(0, 0, 0, 0.9),
                0 0 100px rgba(0, 255, 65, 0.1),
                inset 0 0 60px rgba(0, 255, 65, 0.03);
}

/* Syntax highlighting simulation */
.article-content pre code::selection {
    background: rgba(0, 255, 65, 0.3);
    color: white;
}



/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--torguard-green);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #00CC33;
}

/* Entrance Animations */
.article-content > * {
    animation: contentFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.article-content > *:nth-child(1) { animation-delay: 0.1s; }
.article-content > *:nth-child(2) { animation-delay: 0.2s; }
.article-content > *:nth-child(3) { animation-delay: 0.3s; }
.article-content > *:nth-child(4) { animation-delay: 0.4s; }
.article-content > *:nth-child(5) { animation-delay: 0.5s; }
.article-content > *:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Smooth scroll for internal links */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
.article-content ::selection {
    background: rgba(0, 255, 65, 0.3);
    color: white;
}

/* Enhanced Global Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--torguard-green), var(--torguard-blue));
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00ff41, #0099ff);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--torguard-green) rgba(0, 0, 0, 0.9);
}

/* Focus states */
.article-content a:focus,
.article-content button:focus {
    outline: 2px solid var(--torguard-green);
    outline-offset: 2px;
}

/* Active state for TOC */
#table-of-contents a.active {
    @apply text-torguard-green font-semibold pl-6;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.2) 0%, rgba(0, 255, 65, 0) 100%);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

#table-of-contents a.active::before {
    height: 100%;
    width: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* Smooth scrollbar for TOC */
#table-of-contents::-webkit-scrollbar {
    width: 4px;
}

#table-of-contents::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

#table-of-contents::-webkit-scrollbar-thumb {
    background: var(--torguard-green);
    border-radius: 2px;
}

/* Add scroll spy indicator */
#table-of-contents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--torguard-green), var(--torguard-blue));
    z-index: 10;
}

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--torguard-green), var(--torguard-blue));
    z-index: 1000;
    transition: width 0.2s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* Badass TOC Header */
#table-of-contents .toc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 65, 0.2);
}

#table-of-contents .toc-header .toc-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
}

#table-of-contents .toc-title {
    all: revert;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--torguard-green), var(--torguard-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin: 0 !important;
    padding: 0 !important;
    animation: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* TOC List styling */
#table-of-contents .toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#table-of-contents .toc-icon {
    display: inline-block;
    width: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.6;
}

#table-of-contents .toc-text {
    transition: all 0.3s ease;
}

#table-of-contents a:hover .toc-icon {
    opacity: 1;
    transform: scale(1.2);
}

#table-of-contents a.active .toc-icon {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.8));
}

/* Special styling for Step headings - just make the text cooler */
.article-content h2[id*="step-"] {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.08) 0%, rgba(0, 102, 255, 0.03) 100%);
    border-color: rgba(0, 255, 65, 0.3);
}

/* Ensure h2 content displays correctly */
.article-content h2 * {
    display: inline;
    color: inherit;
}

/* Remove duplicate - already styled above */

/* Remove first letter styling - it's causing issues */

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-content {
        @apply px-4;
        font-size: 1.125rem;
    }
    
    .article-content h1 {
        @apply text-3xl;
    }
    
    .article-content h2 {
        font-size: 2rem !important; /* 32px on mobile */
        padding: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem !important; /* 24px on mobile */
    }
    
    /* Font sizes already defined with !important above */
    
    .alert {
        @apply p-6;
        font-size: 1rem;
    }
}

/* Radar Grid Background Effect for Hero Section */
.radar-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        radial-gradient(circle at center, transparent 30%, rgba(0, 255, 65, 0.05) 70%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Radar Sweep Effect */
.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg at center,
        transparent 0deg,
        rgba(0, 255, 65, 0.1) 10deg,
        rgba(0, 255, 65, 0.2) 20deg,
        transparent 40deg,
        transparent 360deg
    );
    animation: radarSweep 4s linear infinite;
    opacity: 0.5;
}

@keyframes radarSweep {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Add subtle pulse to the grid */
.radar-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 65, 0.2) 0%, transparent 70%);
    animation: radarPulse 3s ease-in-out infinite;
}

@keyframes radarPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--torguard-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.theme-toggle svg {
    width: 28px;
    height: 28px;
    color: var(--torguard-green);
    transition: all 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(180deg);
}

/* Inline Theme Toggle */
.theme-toggle-inline {
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-inline svg {
    color: var(--torguard-green);
    transition: all 0.3s ease;
}

.theme-toggle-inline:hover svg {
    transform: rotate(15deg);
}

.theme-toggle-inline span {
    transition: color 0.3s ease;
}

/* Light Theme Styles - Removed as theme is now applied via JS to specific sections only */

body.light-theme .article-content {
    color: #374151 !important;
}

body.light-theme .article-content h1 {
    background: linear-gradient(135deg, #1a1a1a, #00a832);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 168, 50, 0.3));
}

body.light-theme .article-content h2 {
    color: #111827 !important;
    background: linear-gradient(135deg, #f3f4f6 0%, rgba(0, 168, 50, 0.05) 100%);
    text-shadow: none;
    box-shadow: 0 0 0 1px rgba(0, 168, 50, 0.2),
                0 5px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .article-content h2::before {
    background: linear-gradient(135deg, #00a832, #0066ff);
    opacity: 0.5;
}

body.light-theme .article-content h2:hover {
    box-shadow: 0 0 0 1px rgba(0, 168, 50, 0.4),
                0 10px 30px rgba(0, 0, 0, 0.15),
                0 0 60px rgba(0, 168, 50, 0.1);
}

body.light-theme .article-content h3 {
    color: #1f2937 !important;
}

body.light-theme .article-content h3::after {
    background: #00a832;
}

body.light-theme .article-content p {
    color: #4b5563 !important;
}

body.light-theme .article-content p:hover {
    color: #374151 !important;
}

body.light-theme .article-content li {
    color: #4b5563 !important;
}

body.light-theme .article-content li:hover {
    color: #374151 !important;
}

body.light-theme .article-content ul li::before {
    color: #00a832;
    filter: drop-shadow(0 0 3px rgba(0, 168, 50, 0.5));
}

body.light-theme .article-content > ol > li::before,
body.light-theme .article-content div > ol > li::before,
body.light-theme .article-content section > ol > li::before {
    background: linear-gradient(135deg, #00a832, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 168, 50, 0.4));
}

body.light-theme .article-content strong {
    color: #111827 !important;
    text-shadow: none;
}

body.light-theme .article-content strong::after {
    background: linear-gradient(to right, #00a832, transparent);
}

body.light-theme .article-content em {
    color: #1f2937 !important;
    background: linear-gradient(120deg, transparent 0%, rgba(0, 168, 50, 0.08) 50%, transparent 100%);
}

body.light-theme .article-content a {
    color: #00a832 !important;
}

body.light-theme .article-content a:hover {
    color: #008527 !important;
    text-shadow: 0 0 5px rgba(0, 168, 50, 0.3);
}

body.light-theme .article-content a::after {
    background: linear-gradient(to right, #00a832, #0066ff);
}

body.light-theme .article-content img {
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #00a832, #0066ff) border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
                0 0 30px rgba(0, 168, 50, 0.1);
}

body.light-theme .article-content img:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(0, 168, 50, 0.15);
}

body.light-theme .article-content code {
    background: rgba(0, 168, 50, 0.08);
    color: #00a832;
    border: 1px solid rgba(0, 168, 50, 0.3);
}

body.light-theme .article-content pre {
    background: #f9fafb;
    border: 2px solid rgba(0, 168, 50, 0.3);
    box-shadow: 0 0 0 1px rgba(0, 168, 50, 0.1),
                0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .article-content pre::before {
    background: linear-gradient(135deg, rgba(0, 168, 50, 0.1), rgba(0, 102, 255, 0.05));
    border-bottom: 1px solid rgba(0, 168, 50, 0.3);
}

body.light-theme .article-content pre[data-title]::before {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .article-content pre code {
    color: #1f2937 !important;
}

body.light-theme .article-content blockquote {
    background: linear-gradient(135deg, rgba(0, 168, 50, 0.08), rgba(0, 102, 255, 0.04));
    border-left-color: #00a832;
    color: #374151;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .article-content blockquote::before {
    color: #00a832;
}

body.light-theme .article-content table {
    background: rgba(249, 250, 251, 0.95) !important;
    border: 2px solid rgba(0, 168, 50, 0.3);
    box-shadow: 0 0 0 1px rgba(0, 168, 50, 0.1),
                0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .article-content table:hover {
    border-color: rgba(0, 168, 50, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 168, 50, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.15),
                0 0 20px rgba(0, 168, 50, 0.1);
}

body.light-theme .article-content thead {
    background: linear-gradient(135deg, rgba(0, 168, 50, 0.1), rgba(0, 102, 255, 0.05));
}

body.light-theme .article-content th {
    color: #111827 !important;
    border-bottom: 3px solid rgba(0, 168, 50, 0.4);
    text-shadow: none;
}

body.light-theme .article-content td {
    color: #374151 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .article-content tbody tr::before {
    background: linear-gradient(to bottom, #00a832, #0066ff);
    box-shadow: 0 0 5px rgba(0, 168, 50, 0.5);
}

body.light-theme .article-content tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 168, 50, 0.08) 0%, rgba(0, 102, 255, 0.04) 100%);
    box-shadow: 0 3px 15px rgba(0, 168, 50, 0.15);
}

body.light-theme .article-content tbody tr:hover td {
    color: #111827 !important;
    text-shadow: none;
}

body.light-theme .article-content tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .article-content tbody tr:nth-child(even):hover {
    background: linear-gradient(90deg, rgba(0, 168, 50, 0.08) 0%, rgba(0, 102, 255, 0.04) 100%);
}

body.light-theme .copy-button {
    background: linear-gradient(135deg, #00a832, #0066ff) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(0, 168, 50, 0.3);
}

body.light-theme .copy-button:hover {
    box-shadow: 0 3px 20px rgba(0, 168, 50, 0.4) !important;
}

body.light-theme .alert-info {
    border-color: rgba(59, 130, 246, 0.4);
    color: #1e40af;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.04));
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.15);
}

body.light-theme .alert-warning {
    border-color: rgba(245, 158, 11, 0.4);
    color: #92400e;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.04));
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

body.light-theme .alert-success {
    border-color: rgba(16, 185, 129, 0.4);
    color: #065f46;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}

body.light-theme .alert-danger {
    border-color: rgba(239, 68, 68, 0.4);
    color: #991b1b;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.04));
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}

body.light-theme ::selection {
    background: rgba(0, 168, 50, 0.2);
    color: #111827;
}

body.light-theme .article-content ::selection {
    background: rgba(0, 168, 50, 0.2);
    color: #111827;
}

body.light-theme .article-content pre code::selection {
    background: rgba(0, 168, 50, 0.2);
    color: #111827;
}

/* Light theme adjustments for TOC */
body.light-theme #table-of-contents {
    background: rgba(249, 250, 251, 0.95);
    border-color: rgba(0, 168, 50, 0.2);
}

body.light-theme #table-of-contents:hover {
    border-color: rgba(0, 168, 50, 0.4);
}

body.light-theme #table-of-contents h2 {
    background: linear-gradient(135deg, #00a832, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

body.light-theme #table-of-contents a {
    color: #6b7280;
}

body.light-theme #table-of-contents a:hover {
    color: #111827;
    background: rgba(0, 168, 50, 0.08);
    box-shadow: 0 0 10px rgba(0, 168, 50, 0.1);
}

body.light-theme #table-of-contents a.active {
    color: #00a832;
    background: linear-gradient(90deg, rgba(0, 168, 50, 0.15) 0%, rgba(0, 168, 50, 0) 100%);
    box-shadow: 0 0 15px rgba(0, 168, 50, 0.15);
}

body.light-theme #table-of-contents a::before {
    background: linear-gradient(to bottom, #00a832, #0066ff);
}

body.light-theme #table-of-contents a.active::before {
    box-shadow: 0 0 5px rgba(0, 168, 50, 0.5);
}

/* Theme toggle light mode style */
body.light-theme .theme-toggle {
    background: rgba(255, 255, 255, 0.95);
    border-color: #00a832;
    box-shadow: 0 0 20px rgba(0, 168, 50, 0.2);
}

body.light-theme .theme-toggle:hover {
    box-shadow: 0 0 30px rgba(0, 168, 50, 0.3);
}

body.light-theme .theme-toggle svg {
    color: #00a832;
}

/* Theme toggle button stays in dark mode - no light theme changes */

/* Light theme styles removed - theme toggle only affects article content area */

/* Mobile TOC light theme */
body.light-theme #table-of-contents-mobile {
    background: rgba(249, 250, 251, 0.95);
    border-color: rgba(0, 168, 50, 0.2);
}

body.light-theme #table-of-contents-mobile a {
    color: #6b7280;
}

body.light-theme #table-of-contents-mobile a:hover {
    color: #111827;
    background: rgba(0, 168, 50, 0.08);
}

body.light-theme #table-of-contents-mobile a.active {
    color: #00a832;
    background: rgba(0, 168, 50, 0.12);
}

/* Ensure text remains readable in all states */
body.light-theme .article-content * {
    color: inherit;
}

body.light-theme .glow-text-green {
    text-shadow: 0 0 10px rgba(0, 168, 50, 0.3), 0 0 20px rgba(0, 168, 50, 0.2);
}
