/* VinnypuxVPN Support — Main Styles */

:root {
    --color-black: #0a0a0a;
    --color-black-light: #1a1a1a;
    --color-orange: #ff6b35;
    --color-orange-light: #ff8c5a;
    --color-gold: #ffb800;
    --color-white: #ffffff;
    --color-gray: #2a2a2a;
    --color-gray-light: #3a3a3a;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --bg-body: #0a0a0a;
    --bg-card: rgba(26, 26, 26, 0.65);
    --bg-card-hover: rgba(255, 107, 53, 0.06);
    --bg-header: rgba(10, 10, 10, 0.45);
    --bg-header-hover: rgba(10, 10, 10, 0.65);
    --bg-btn: rgba(255, 255, 255, 0.06);
    --bg-btn-hover: rgba(255, 107, 53, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 107, 53, 0.25);
    --border-btn: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.4);
    --text-hint: rgba(255, 255, 255, 0.3);
    --icon-filter: brightness(0) invert(1);
    --icon-opacity: 0.6;
    --dots-bg: #0a0a0a;
}

[data-theme="light"] {
    --bg-body: #f5f5f7;
    --bg-card: rgba(255, 255, 255, 0.55);
    --bg-card-hover: rgba(255, 107, 53, 0.06);
    --bg-header: rgba(255, 255, 255, 0.75);
    --bg-header-hover: rgba(255, 255, 255, 0.9);
    --bg-btn: rgba(0, 0, 0, 0.05);
    --bg-btn-hover: rgba(255, 107, 53, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(255, 107, 53, 0.3);
    --border-btn: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
    --text-dim: rgba(0, 0, 0, 0.4);
    --text-hint: rgba(0, 0, 0, 0.25);
    --color-white: #1a1a1a;
    --color-black: #f5f5f7;
    --icon-filter: brightness(0);
    --icon-opacity: 0.5;
    --dots-bg: #f5f5f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--color-orange); text-decoration: none; }
a:hover { color: var(--color-orange-light); }

/* =============================================
   Header (identical to account-header pattern)
   ============================================= */
.sup-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-header);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    z-index: 100;
}

.sup-header-logo-link {
    position: absolute;
    left: 1.25rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.sup-header-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.4)) drop-shadow(0 0 20px rgba(255, 107, 53, 0.2));
    transition: filter 0.3s, transform 0.3s;
}

.sup-header-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(255, 107, 53, 0.6)) drop-shadow(0 0 28px rgba(255, 107, 53, 0.3));
}

.sup-header-spacer { display: none; }

/* Desktop nav — centered */
.sup-header-nav-desktop { display: flex; align-items: center; }

.sup-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sup-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sup-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .sup-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}

.sup-nav-item.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 184, 0, 0.08));
    color: var(--color-orange);
}

.sup-nav-icon {
    width: 20px; height: 20px;
    object-fit: contain;
    filter: var(--icon-filter);
    opacity: var(--icon-opacity);
    flex-shrink: 0;
}

.sup-nav-item.active .sup-nav-icon {
    filter: brightness(0) saturate(100%) invert(52%) sepia(98%) saturate(1500%) hue-rotate(350deg) brightness(100%) contrast(95%);
    opacity: 1;
}

.sup-nav-label { font-size: inherit; }

/* Hamburger menu (3 bars) — right side */
.sup-header-menu-wrap {
    position: absolute;
    right: 1.25rem;
    flex-shrink: 0;
}

.sup-btn-header-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--bg-btn);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.sup-btn-header-menu span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: background 0.2s;
}

.sup-btn-header-menu:hover {
    background: var(--bg-btn-hover);
    border-color: var(--border-hover);
}

.sup-btn-header-menu:hover span {
    background: var(--color-orange);
}

/* Dropdown */
.sup-header-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-header);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.sup-header-dropdown.open { display: block; }

.sup-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.sup-dropdown-item:hover { background: var(--bg-btn-hover); }

.sup-dropdown-item img {
    width: 16px; height: 16px;
    filter: var(--icon-filter);
    opacity: var(--icon-opacity);
}

/* Theme toggle labels */
.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }
[data-theme="light"] .theme-icon-light { display: block; }
[data-theme="light"] .theme-icon-dark { display: none; }
.theme-label-light { display: none; }
.theme-label-dark { display: inline; }
[data-theme="light"] .theme-label-light { display: inline; }
[data-theme="light"] .theme-label-dark { display: none; }

/* =============================================
   Mobile Bottom Nav (identical to account pattern)
   ============================================= */
.sup-mobile-nav-wrapper {
    display: none;
    position: relative;
    z-index: 100;
}

@media (max-width: 768px) {
    .sup-header-nav-desktop { display: none !important; }

    .sup-header-logo-link {
        left: 50%;
        transform: translateX(-50%);
    }

    .sup-mobile-nav-wrapper { display: block; }

    .sup-mobile-nav {
        position: fixed;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.6rem 0.25rem;
        background: var(--bg-header);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 22px;
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.6),
            0 0 0 0.5px rgba(255, 255, 255, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        z-index: 100;
    }

    .sup-mobile-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.4rem 0.75rem;
        border-radius: 12px;
        color: var(--text-dim);
        font-size: 0.65rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        justify-content: center;
    }

    .sup-mobile-item:hover { color: var(--text-primary); }
    .sup-mobile-item.active { background: rgba(255, 107, 53, 0.12); color: var(--color-orange); }

    .sup-mobile-icon {
        width: 22px; height: 22px;
        filter: var(--icon-filter);
        opacity: var(--icon-opacity);
    }

    .sup-mobile-item.active .sup-mobile-icon {
        filter: brightness(0) saturate(100%) invert(52%) sepia(98%) saturate(1500%) hue-rotate(350deg) brightness(100%) contrast(95%);
        opacity: 1;
    }

    .sup-mobile-label { font-size: 0.65rem; font-weight: 500; }
}

/* =============================================
   Container
   ============================================= */
.sup-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 32px; /* top padding for fixed navbar */
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .sup-container {
        padding: 70px 16px 100px; /* bottom for mobile nav */
    }
}

/* =============================================
   Section headings
   ============================================= */
.sup-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sup-section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* =============================================
   Glass Card — main content wrapper
   ============================================= */
.sup-glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px 28px;
}

.sup-glass-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.sup-glass-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sup-glass-subtitle {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Filters row (instructions platform filter) */
.sup-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* =============================================
   Content Cards (inside glass)
   ============================================= */
.sup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px 22px;
    transition: var(--transition);
    cursor: pointer;
}

.sup-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

[data-theme="light"] .sup-card {
    background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .sup-card:hover {
    background: rgba(255, 107, 53, 0.04);
}

.sup-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sup-card-meta {
    font-size: 13px;
    color: var(--text-dim);
}

/* =============================================
   FAQ
   ============================================= */
.sup-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sup-faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.sup-faq-item:hover {
    border-color: var(--border-hover);
}

.sup-faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
}

.sup-faq-arrow {
    color: var(--text-dim);
    transition: var(--transition);
    font-size: 14px;
}

.sup-faq-item.open .sup-faq-arrow { transform: rotate(180deg); }

.sup-faq-answer {
    padding: 0 20px 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.sup-faq-item.open .sup-faq-answer {
    max-height: 2000px;
    padding: 0 20px 20px 20px;
}

/* =============================================
   Editor.js rendered content
   ============================================= */
.ejs-content h2 { font-size: 20px; font-weight: 600; margin: 16px 0 8px; }
.ejs-content h3 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.ejs-content p { margin-bottom: 12px; color: var(--text-secondary); line-height: 1.7; }
.ejs-content ul, .ejs-content ol { margin: 8px 0 12px 20px; color: var(--text-secondary); }
.ejs-content li { margin-bottom: 4px; }
.ejs-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.ejs-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    margin: 12px 0;
}
.ejs-content code {
    background: rgba(255, 107, 53, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
}
.ejs-content .ejs-warning {
    background: rgba(255, 184, 0, 0.1);
    border-left: 3px solid var(--color-gold);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 12px 0;
}
.ejs-content .ejs-delimiter {
    text-align: center;
    padding: 16px 0;
    color: var(--text-hint);
    font-size: 24px;
    letter-spacing: 8px;
}

/* =============================================
   Instructions
   ============================================= */
.sup-instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.sup-category-group { margin-bottom: 32px; }

.sup-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

/* =============================================
   Misc
   ============================================= */
.sup-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.sup-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-hint);
    font-size: 15px;
}

.sup-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.sup-back:hover { color: var(--color-orange); }

/* =============================================
   Mobile
   ============================================= */
@media (max-width: 768px) {
    .sup-section-title { font-size: 22px; }
    .sup-instructions-grid { grid-template-columns: 1fr; }

    .sup-glass-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .sup-glass-header {
        flex-direction: column;
        gap: 12px;
    }

    .sup-glass-title { font-size: 19px; }

    .sup-filters {
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .sup-glass-card {
        padding: 16px 12px;
        border-radius: 14px;
    }
    .sup-glass-title { font-size: 17px; }
}
