/* ==========================================================
WHISPER NOTIFICATIONS â€” REDWOOD EDITION
Theme: Dark Forest
========================================================== */
:root {
    --w-font: "Nunito Sans", Arial, sans-serif;
    --w-bg: #1a1a1a;
    --w-surface: rgba(30, 30, 30, 0.95);
    --w-surface-muted: #252525;
    --w-text: #e0e0e0;
    --w-text-soft: #888888;
    --w-line: rgba(255, 255, 255, 0.08);
    --w-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --w-accent: #d4af37; /* Ð¡Ñ‚Ð°Ñ€Ð¾Ðµ Ð·Ð¾Ð»Ð¾Ñ‚Ð¾ */
    --w-like: #b86468;
    --w-mention: #74658a;
    --w-quote: #6b7e78; /* Ð¦Ð²ÐµÑ‚ Ð¼Ñ…Ð° */
    --w-pm: #9a713d;
    --w-radius-xl: 24px;
    --w-radius-lg: 16px;
}

body.whisper-open { overflow: hidden; }

[data-whisper-toggle] { position: relative; cursor: pointer; }
[data-whisper-count] {
    position: absolute; top: -5px; right: -8px;
    min-width: 16px; height: 16px; border-radius: 50%;
    background: var(--w-accent); color: #000;
    font: 700 9px/16px var(--w-font); text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#whisper-root {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none; font-family: var(--w-font); color: var(--w-text);
}
.whisper-backdrop {
    position: absolute; inset: 0; opacity: 0;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}
.whisper-shade {
    position: absolute; top: 20px; left: 50%;
    width: min(900px, calc(100vw - 40px));
    height: min(650px, calc(100vh - 40px));
    transform: translate(-50%, -110%); opacity: 0;
    background: var(--w-bg); border: 1px solid var(--w-line);
    border-radius: var(--w-radius-xl); box-shadow: var(--w-shadow);
    display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
#whisper-root.is-open { pointer-events: auto; }
#whisper-root.is-open .whisper-backdrop { opacity: 1; }
#whisper-root.is-open .whisper-shade { transform: translate(-50%, 0); opacity: 1; }

.whisper-header { padding: 16px 20px; border-bottom: 1px solid var(--w-line); display: flex; justify-content: space-between; align-items: center; }
.whisper-title h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--w-accent); }
.whisper-close { background: none; border: none; color: var(--w-text); font-size: 20px; cursor: pointer; }

.whisper-body { flex: 1; overflow-y: auto; padding: 10px; }
.whisper-card {
    display: grid; grid-template-columns: 40px 1fr; gap: 12px;
    padding: 12px; margin-bottom: 8px; background: var(--w-surface);
    border-radius: var(--w-radius-lg); border: 1px solid var(--w-line);
    transition: transform 0.2s;
}
.whisper-card:hover { transform: translateY(-2px); border-color: var(--w-accent); }
.whisper-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--w-surface-muted); display: flex;
    align-items: center; justify-content: center; font-size: 16px;
}
.whisper-card--like .whisper-icon { color: var(--w-like); }
.whisper-card--mention .whisper-icon { color: var(--w-mention); }
.whisper-card--quote .whisper-icon { color: var(--w-quote); }

.whisper-content h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; }
.whisper-content p { margin: 0; font-size: 11px; color: var(--w-text-soft); line-height: 1.4; }

/* Ð£Ð¿Ð¾Ð¼Ð¸Ð½Ð°Ð½Ð¸Ñ� Ð² Ð¿Ð¾Ñ�Ñ‚Ð°Ñ… */
.whisper-mention-link {
    color: var(--w-accent); text-decoration: none; font-weight: 700;
    border-bottom: 1px dashed var(--w-accent); transition: color 0.2s;
}
.whisper-mention-link:hover { color: #fff; border-bottom-style: solid; }

/* ==========================================================
WHISPER — SETTINGS & TABS UI
========================================================== */

/* --- Ïåðåêëþ÷åíèå âêëàäîê --- */
.whisper-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.whisper-tab-btn {
    background: transparent;
    border: none;
    color: #888;
    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.whisper-tab-btn:hover {
    color: #ccc;
    background: rgba(255,255,255,0.05);
}

.whisper-tab-btn.is-active {
    color: #d4af37; /* Çîëîòî Ðåäâóäà */
    background: rgba(212, 175, 55, 0.1);
}

/* --- Ïàíåëè êîíòåíòà --- */
.whisper-pane {
    display: none;
    animation: whisperFadeIn 0.3s ease;
}

.whisper-pane.is-active {
    display: block;
}

@keyframes whisperFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Ñåêöèÿ íàñòðîåê --- */
.whisper-settings-group {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.whisper-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.whisper-setting-row:last-child {
    border-bottom: none;
}

.whisper-setting-row:hover {
    background: rgba(255,255,255,0.03);
}

.whisper-setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 80%;
}

.whisper-setting-title {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}

.whisper-setting-desc {
    color: #777;
    font-size: 11px;
    line-height: 1.3;
}

/* --- Toggle Switch (Êàñòîìíûé ÷åêáîêñ) --- */
.whisper-toggle-wrapper {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.whisper-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.whisper-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.whisper-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.whisper-toggle-input:checked + .whisper-toggle-slider {
    background-color: #d4af37; /* Àêòèâíûé öâåò */
    border-color: #b8962e;
}

.whisper-toggle-input:checked + .whisper-toggle-slider:before {
    transform: translateX(20px);
}

/* --- Ãðîìêîñòü --- */
.whisper-volume-control {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 16px;
}

.whisper-volume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whisper-volume-label {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}

.whisper-volume-value {
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
}

.whisper-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.whisper-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.whisper-range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    border: none;
}

/* --- Êíîïêè äåéñòâèé --- */
.whisper-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.whisper-action-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #ccc;
    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.whisper-action-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.whisper-action-btn.primary {
    background: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

.whisper-action-btn.primary:hover {
    background: #e5c148;
}

.whisper-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}