/* style.css - Arkusz stylów dla AIO-IPTV.pl - WERSJA POPRAWIONA */

/* 1. NAPRAWA SZEROKOŚCI NA TELEFONACH (Mobile Fix) */
/* To zapobiega wychodzeniu elementów poza ekran i poziomemu przewijaniu */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #b0b8c4;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0, #1f242c 0%, #0d1117 60%);
}

/* NAGŁÓWEK */
header {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    border-bottom: 1px solid #30363d;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

/* AKCENTY ŚWIĄTECZNE */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Odstęp ozdób od loga */
}

.xmas-decor {
    font-size: 2.5rem;
    animation: sway 3s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    line-height: 1;
}

@keyframes sway {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.site-logo {
    max-width: 280px;
    height: auto;
    display: inline-block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.2));
}

/* PRZYCISKI NAWIGACYJNE */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.nav-btn {
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}

.nav-btn:hover {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* SIATKA (GRID) - ZACHOWANA ORYGINALNA STRUKTURA */
.container {
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

@media (min-width: 1100px) { .container { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 1099px) { .container { grid-template-columns: repeat(2, 1fr); } }

/* MAŁE EKRANY */
@media (max-width: 600px) {
    header {
        padding: 10px 10px 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.4);
        background-color: #0f1219;
        transform: translateY(0);
    }

    header.hide { transform: translateY(-100%); }
    body { padding-top: 160px; }
    
    .site-logo { max-width: 120px; }
    .xmas-decor { font-size: 1.5rem; gap: 5px; } /* Mniejsze ozdoby na telefonie */
    
    header > div > p { font-size: 0.85rem !important; margin-top: 2px !important; }
    .nav-buttons { gap: 6px; margin-top: 10px; }
    .nav-btn { padding: 6px 12px; font-size: 0.85rem; }
    .search-container { margin-bottom: 120px; }
}

/* KARTA */
.card {
    background-color: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 120px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #58a6ff;
}

.card h2 {
    color: #58a6ff;
    font-size: 1.2rem;
    margin-top: 0;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card p { font-size: 0.9rem; margin-bottom: 15px; }

/* POZOSTAŁE STYLE (Bez zmian wpływających na układ) */
.terminal-bar {
    background: #0d1117;
    border-bottom: 1px solid #30363d;
    padding: 8px 10px;
    margin: -20px -20px 15px -20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #7d8590;
    margin-right: 5px;
}

.accordion-item { border-bottom: 1px solid #21262d; }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
    width: 100%;
    padding: 15px 10px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    color: #d29922;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
}

.accordion-header:hover { background-color: rgba(255, 255, 255, 0.05); color: #e2b714; }
.accordion-header.blue-header { color: #58a6ff; }
.accordion-header.blue-header:hover { color: #79c0ff; }

.accordion-header::after {
    content: '▼';
    font-size: 0.7em;
    transition: transform 0.3s ease;
    margin-left: 10px;
    color: #8b949e;
}

.accordion-item.active .accordion-header::after { transform: rotate(180deg); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 10px;
    background-color: rgba(13, 17, 23, 0.5);
    border-radius: 4px;
}

.accordion-content p, .accordion-content div { margin: 15px 0; font-size: 0.9em; color: #b0b8c4; }

.search-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 10px;
}

#searchBox {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 25px;
    border: 2px solid #30363d;
    background-color: #0d1117;
    color: #e2e8f0;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#searchBox:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }

.file-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.file-list li { padding: 10px 0; border-bottom: 1px solid #21262d; display: flex; flex-direction: column; scroll-margin-top: 10px; }
.file-list li:last-child { border-bottom: none; }

.file-link { color: #58a6ff; text-decoration: none; font-weight: 500; display: flex; align-items: center; transition: color 0.2s; }
.file-link:hover { text-decoration: underline; color: #79c0ff; }
.file-desc { font-size: 0.8em; color: #7d8590; margin-left: 30px; margin-top: 2px; }
.icon { margin-right: 10px; font-size: 1.2em; }
.badge { background-color: #1f6feb; color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; margin-left: 10px; }
.badge-warning { background-color: #d29922; color: black; }

.support-section { text-align: center; }
.qr-code { display: block; margin: 15px auto; border: 1px solid #30363d; padding: 5px; background: white; border-radius: 4px; max-width: 150px; transition: transform 0.3s; }
.qr-code:hover { transform: scale(1.05); }
.support-text { font-size: 0.85rem; color: #8b949e; margin-top: 15px; line-height: 1.5; text-align: justify; }

.cmd-wrapper { position: relative; margin-bottom: 15px; }
.command-box {
    background-color: #0d1117;
    border: 1px solid #30363d;
    padding: 12px 80px 12px 12px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    color: #e2e8f0;
    font-size: 0.85em;
    word-break: break-all;
    user-select: all;
    border-left: 3px solid #238636; 
}

.copy-btn {
    position: absolute; top: 5px; right: 5px;
    background-color: #21262d; border: 1px solid #30363d; color: #c9d1d9;
    padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.75rem;
    transition: all 0.2s;
}
.copy-btn:hover { background-color: #238636; color: white; border-color: #238636; }
.cmd-title { color: #58a6ff; font-size: 0.9em; font-weight: bold; margin-bottom: 4px; }
.code-snippet {
    display: block; background: #0d1117; padding: 2px 5px; border-radius: 3px;
    font-family: 'Courier New', Courier, monospace; margin: 2px 0; color: #a5d6ff; font-size: 0.9em;
}

.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 15px;
    background-color: #0d1117; border: 1px solid #30363d; color: #e2e8f0;
    border-radius: 4px; box-sizing: border-box; font-family: inherit; transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #3b82f6; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-btn {
    background-color: #238636; color: white; padding: 12px 25px; border: none;
    border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 1rem; width: 100%;
    transition: background-color 0.3s;
}
.contact-btn:hover { background-color: #2ea043; }

.telegram-btn {
    display: inline-block; background-color: #0088cc; color: white;
    padding: 10px 20px; text-decoration: none; border-radius: 4px; font-weight: bold;
    margin-top: 10px; text-align: center; transition: background-color 0.3s;
}
.telegram-btn:hover { background-color: #006699; }

#topBtn {
    display: none; position: fixed; bottom: 20px; right: 20px; z-index: 99;
    border: none; outline: none; background-color: #3b82f6; color: white;
    cursor: pointer; padding: 15px; border-radius: 50%; font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: background-color 0.3s, transform 0.3s;
}
#topBtn:hover { background-color: #2563eb; transform: scale(1.1); }

footer:not(.site-footer) {
    text-align: center; padding: 40px 0; font-size: 0.9rem; color: #8b949e;
    border-top: 1px solid #30363d; margin-top: 40px; background-color: #0d1117;
}
footer:not(.site-footer) a { color: #58a6ff; text-decoration: none; }

.full-width { grid-column: 1 / -1; }

.term-tooltip {
    position: relative; cursor: help; font-weight: 600; color: #58a6ff; border-bottom: 1px dotted #58a6ff;
}
.term-tooltip::after {
    content: attr(data-tooltip); position: absolute; left: 0; bottom: 120%;
    width: max-content; max-width: 260px; background: #161b22; color: #c9d1d9;
    padding: 6px 8px; border-radius: 4px; font-size: 0.75rem; opacity: 0;
    pointer-events: none; transform: translateY(5px); transition: opacity 0.15s ease, transform 0.15s ease;
    border: 1px solid #30363d; z-index: 20;
}
.term-tooltip:hover::after { opacity: 1; transform: translateY(0); }

.status-badge {
    padding: 8px 12px; border-radius: 999px; font-size: 0.85rem; margin-bottom: 6px;
    display: inline-flex; align-items: center; gap: 6px; background: rgba(13, 17, 23, 0.7);
    border: 1px solid #30363d; color: #c9d1d9;
}
.status-ok { border-color: #238636; color: #3fb950; }
.status-stale { border-color: #d29922; color: #e3b341; }
.status-error { border-color: #f85149; color: #f85149; }

.skeleton {
    position: relative; color: transparent !important;
    background: linear-gradient(90deg, #20252d 25%, #2a3138 37%, #20252d 63%);
    background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite;
    border-radius: 4px;
}
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.top-time-label {
    position: fixed; bottom: 80px; right: 20px; font-size: 0.75rem; color: #9ca3af;
    background: rgba(13, 17, 23, 0.85); padding: 4px 10px; border-radius: 999px; z-index: 98; display: none;
}

.code-snippet-wrapper { position: relative; display: inline-block; }
.code-snippet-wrapper .code-snippet { padding-right: 28px; }
.code-copy-inline {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    background: transparent; border: none; cursor: pointer; font-size: 0.8rem; color: #9ca3af;
}
.code-copy-inline:hover { color: #e5e7eb; }

/* Tryb jasny */
body.light { background-color: #f3f4f6; color: #111827; background-image: none; }
body.light header { background: linear-gradient(180deg, #e5e7eb 0%, #f9fafb 100%); border-bottom-color: #d1d5db; }
body.light .card { background-color: rgba(255, 255, 255, 0.9); border-color: #e5e7eb; }
body.light .card h2 { border-bottom-color: #e5e7eb; }
body.light footer { background-color: #f9fafb; border-top-color: #e5e7eb; color: #4b5563; }
body.light a { color: #2563eb; }
body.light .command-box { background-color: #111827; border-color: #4b5563; }
body.light #topBtn { box-shadow: 0 4px 8px rgba(15, 23, 42, 0.4); }

/* GRID UKŁAD - ZACHOWANY ORYGINALNY */
.feature-grid {
    display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
    gap: 20px; background: transparent; border: none; box-shadow: none; padding: 0;
}
.feature-panel {
    background: rgba(13, 17, 23, 0.9); border-radius: 12px; border: 1px solid #30363d;
    padding: 18px 18px 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.generator-panel { border-color: #238636; box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.25), 0 18px 45px rgba(0,0,0,0.65); }
.faq-panel { border-color: #30363d; display: flex; flex-direction: column; gap: 4px; }
.faq-header h2 { margin: 0; border-bottom: none; }
.faq-subtitle { margin: 4px 0 12px; font-size: 0.85rem; color: #8b949e; }
.faq-panel .accordion-item { border-radius: 8px; border: 1px solid #30363d; margin-bottom: 8px; overflow: hidden; background: rgba(22, 27, 34, 0.9); }
.faq-panel .accordion-header { padding: 9px 12px; font-size: 0.9rem; background: transparent; display: flex; justify-content: space-between; align-items: center; }
.faq-panel .accordion-header::after { content: '+'; font-weight: bold; color: #6e7681; margin-left: 8px; }
.faq-panel .accordion-item.active .accordion-header::after { content: '−'; }
.faq-panel .accordion-content { padding: 10px 12px 12px; }

/* Statystyki projektu */
.stats-card { border: 1px solid #238636; box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.25); }
.stats-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.stats-header-icon { font-size: 1.6rem; }
.stats-header-subtitle { margin: 4px 0 0; font-size: 0.85rem; color: #8b949e; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 10px; }
.stats-item { background: rgba(13, 17, 23, 0.7); border-radius: 10px; padding: 10px 14px; border: 1px solid #30363d; }
.stats-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #8b949e; margin-bottom: 6px; }
.stats-value { font-size: 1.3rem; font-weight: 700; color: #e5e7eb; }
.stats-value.stats-ok { color: #3fb950; }
.stats-value.stats-muted { font-size: 1.1rem; color: #e3b341; }
.stats-footnote { margin-top: 15px; font-size: 0.8rem; color: #8b949e; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* Generator One-Liner */
.generator-card { border: 1px solid #238636; box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.25); }
.generator-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 15px; }
.gen-option {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
    border-radius: 999px; border: 1px solid #30363d; background: rgba(13, 17, 23, 0.6);
    cursor: pointer; font-size: 0.9rem; user-select: none; transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}
.gen-option input { accent-color: #22c55e; }
.gen-option:hover { border-color: #3fb950; background-color: rgba(46, 160, 67, 0.15); transform: translateY(-1px); }
.generator-note { font-size: 0.8rem; color: #8b949e; margin-top: 8px; }

@media (max-width: 700px) { .generator-options { flex-direction: column; align-items: flex-start; } }

#terminal { display: none; }

/* Tryb jasny – dostosowanie */
body.light .feature-panel { background-color: #ffffff; border-color: #e5e7eb; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
body.light .generator-panel { border-color: #22c55e; }
body.light .stats-card { border-color: #22c55e; background-color: rgba(255, 255, 255, 0.95); }
body.light .stats-item { background-color: #f3f4f6; border-color: #e5e7eb; }
body.light .stats-label { color: #6b7280; }
body.light .stats-footnote { color: #6b7280; }

/* Projekt – statystyki */
.project-stats-card { border: 1px solid #238636; box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.25); }
.project-stats-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; border-bottom: 1px solid #30363d; padding-bottom: 10px; }
.project-stats-title { display: flex; align-items: center; gap: 10px; }
.project-stats-icon { font-size: 1.6rem; }
.project-stats-header h2 { margin: 0; }
.project-stats-header p { margin: 2px 0 0; font-size: 0.85rem; color: #8b949e; }

.stats-status {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
    border-radius: 999px; background: rgba(13, 17, 23, 0.9); border: 1px solid #30363d;
    font-size: 0.8rem; color: #9ca3af;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b949e; }
.stats-status.ok { border-color: #238636; color: #3fb950; }
.stats-status.ok .status-dot { background: #3fb950; }
.stats-status.error { border-color: #f85149; color: #f85149; }
.stats-status.error .status-dot { background: #f85149; }

.project-stats-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.project-stat {
    flex: 1 1 180px; min-width: 150px; background: rgba(13, 17, 23, 0.7);
    border-radius: 8px; padding: 10px 14px; border: 1px solid #30363d; text-align: center;
}
.project-stat-label { font-size: 0.8rem; color: #8b949e; margin-bottom: 4px; }
.project-stat-value { font-size: 1.3rem; font-weight: 600; }
.project-stats-footer { margin-top: 4px; font-size: 0.8rem; color: #8b949e; border-top: 1px solid #30363d; padding-top: 8px; }

/* UKŁAD SIATKI NA DUŻE EKRANY - PRZYWRÓCONY DO ORYGINAŁU */
@media (min-width: 1200px) {
    .container {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: auto;
        grid-gap: 20px;
        grid-template-areas:
            "wtyczki listy aktualnosci faq"
            "slownik generator generator wsparcie"
            "adgrid adgrid adgrid adgrid"
            "pliki kontakt systemy kalkulator"
            "status status statystyki statystyki";
    }

    #wtyczki { grid-area: wtyczki; }
    #listy { grid-area: listy; }
    #aktualnosci { grid-area: aktualnosci; }
    #faq { grid-area: faq; }
    #slownik { grid-area: slownik; }
    #generator { grid-area: generator; }
    #wsparcie { grid-area: wsparcie; }
    #pliki { grid-area: pliki; }
    #kontakt { grid-area: kontakt; }
    #systemy { grid-area: systemy; }
    #kalkulator-epg { grid-area: kalkulator; }
    #status-uslug { grid-area: status; }
    #statystyki { grid-area: statystyki; }
    #ad-grid { grid-area: adgrid; }
}

#generator .command-box { min-height: 80px; max-height: 170px; overflow-y: auto; }

/* REKLAMY */
.ad-placeholder {
    border: 2px dashed #30363d;
    background: rgba(13, 17, 23, 0.4);
    color: #8b949e;
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 1px;
    min-height: 100px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.ad-placeholder:hover { border-color: #58a6ff; color: #c9d1d9; background: rgba(13, 17, 23, 0.6); cursor: default; }
body.light .ad-placeholder { border-color: #d1d5db; background: rgba(243, 244, 246, 0.8); color: #6b7280; }

/* Quiz styles */
.quiz-question h3 {
    color: #58a6ff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.quiz-text {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #c9d1d9;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 12px 16px;
    text-align: left;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}

.quiz-option:hover {
    background-color: #30363d;
    border-color: #58a6ff;
    transform: translateX(5px);
}

.quiz-option.correct {
    background-color: #238636;
    border-color: #3fb950;
    color: white;
}

.quiz-option.incorrect {
    background-color: #f85149;
    border-color: #ff7b72;
    color: white;
}

.quiz-result {
    text-align: center;
    padding: 20px;
}

.quiz-result h3 {
    color: #58a6ff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.quiz-result p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #30363d;
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background-color: #58a6ff;
    transition: width 0.3s ease;
    border-radius: 3px;
}

body.light .quiz-option {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #111827;
}

body.light .quiz-option:hover {
    background-color: #e5e7eb;
    border-color: #2563eb;
}

body.light .quiz-option.correct {
    background-color: #22c55e;
    border-color: #16a34a;
    color: white;
}

body.light .quiz-option.incorrect {
    background-color: #ef4444;
    border-color: #dc2626;
    color: white;
}

body.light .quiz-progress-bar {
    background-color: #e5e7eb;
}

body.light .quiz-progress-fill {
    background-color: #2563eb;
}

/* Particles background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body.light #particles-js {
    opacity: 0.3;
}

/* Plugin rating system */
.plugin-rating {
    margin-top: 10px;
    padding: 10px;
    background: rgba(13, 17, 23, 0.3);
    border-radius: 6px;
    border-left: 3px solid #d29922;
}

.rating-text {
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 5px;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
    margin-right: 10px;
}

.star {
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s, filter 0.2s;
    filter: grayscale(100%);
}

.star:hover,
.star.active {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.rating-stats {
    display: inline-block;
    font-size: 0.8rem;
    color: #8b949e;
}

.rating-average {
    font-weight: bold;
    color: #d29922;
}

body.light .plugin-rating {
    background: rgba(243, 244, 246, 0.5);
    border-left-color: #f59e0b;
}

body.light .rating-text {
    color: #6b7280;
}

body.light .rating-stats {
    color: #6b7280;
}

body.light .rating-average {
    color: #f59e0b;
}



/* =========================
   Section navigation (auto chips)
   ========================= */
.section-nav{
  display:flex;
  gap:10px;
  padding:10px 12px;
  margin:10px auto 0;
  max-width:1200px;
  overflow-x:auto;
  scrollbar-width:thin;
}
.section-chip{
  white-space:nowrap;
  border:1px solid #30363d;
  background:rgba(13,17,23,0.6);
  color:#c9d1d9;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:0.9rem;
}
.section-chip:hover{ border-color:#58a6ff; }

/* =========================
   Notifications dropdown
   ========================= */
.notifications-dropdown{
  display:none;
  position:absolute;
  right:12px;
  top:42px;
  width:min(360px, calc(100vw - 24px));
  background:#0d1117;
  border:1px solid #30363d;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
  z-index:9999;
  overflow:hidden;
}
.notifications-dropdown.show{ display:block; }
.notif-item{
  display:flex;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid rgba(48,54,61,0.7);
}
.notif-item:last-child{ border-bottom:none; }
.notif-icon{ width:22px; text-align:center; }

/* =========================
   Public comments (Supabase)
   ========================= */
.comments-public .comment-form-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.comments-public .comment-form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.comment-secondary{
  border:1px solid #30363d;
  background:rgba(13,17,23,0.45);
  color:#c9d1d9;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
}
.comment-secondary:hover{ border-color:#58a6ff; }

.comment-item{
  border:1px solid #30363d;
  background:rgba(13,17,23,0.45);
  padding:12px;
  border-radius:12px;
  margin-top:10px;
}
.comment-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:6px;
  font-size:0.9rem;
  color:#8b949e;
}
.comment-author{ color:#c9d1d9; font-weight:700; }
.comment-stars{ color:#d29922; letter-spacing:1px; }
.comment-date{ margin-left:auto; }
.comment-body{ color:#c9d1d9; line-height:1.5; }

/* Mobile: reduce visual gaps */
@media (max-width: 600px){
  .section-nav{ padding:8px 10px; }
  .comment-date{ width:100%; margin-left:0; }
}


.search-input{width:100%;max-width:520px;padding:10px 12px;border-radius:10px;border:1px solid #30363d;background:rgba(13,17,23,0.45);color:#c9d1d9;}

/* Support FAB Button */
.support-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.support-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.6);
    background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
}

/* Support Drawer */
.support-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: none;
}

.support-drawer__backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.support-drawer__sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #161b22;
    border-top: 2px solid #238636;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.support-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #30363d;
}

.support-drawer__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #58a6ff;
}

.support-drawer__close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.support-drawer__content {
    padding: 10px 0;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002;
    display: none;
}

.mobile-nav-drawer__backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.mobile-nav-drawer__sheet {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #161b22;
    border-left: 1px solid #30363d;
    padding: 20px;
    overflow-y: auto;
    animation: slideInRight 0.3s ease-out;
}

.mobile-nav-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #30363d;
}

.mobile-nav-drawer__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #58a6ff;
}

.mobile-nav-link {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    background: #30363d;
    border-color: #58a6ff;
    transform: translateX(5px);
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .support-fab {
        bottom: 80px; /* Above mobile navigation */
        left: 20px;
    }

    .support-drawer__sheet {
        max-height: 85vh;
    }
}


@media (max-width: 700px){
  .hero-header{ display:none !important; }
}
