/* Askee — Вопросы и ответы. Визуал v3 под зелёную тему fmanager.online */

.askee-wrap {
    --ask-green: #059669;
    --ask-green-dark: #047857;
    --ask-green-soft: #d1fae5;
    padding-bottom: 24px;
}

/* ---------- Заголовок ---------- */
.askee-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #059669, #047857);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.askee-head {
    border: none;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.askee-head::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #34d399, #a7f3d0);
}

.askee-btn-ask {
    background: linear-gradient(135deg, #059669, #047857);
    border: none;
    border-radius: 50px;
    padding: 9px 22px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all .2s;
}
.askee-btn-ask:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 7px 20px rgba(5, 150, 105, 0.5);
    transform: translateY(-1px);
    color: #fff;
}

/* ---------- Вкладки ---------- */
.askee-tabs .nav-link {
    color: #047857;
    border-radius: 50px;
    padding: 7px 18px;
    font-weight: 700;
    margin-right: 6px;
    font-size: .92rem;
    transition: all .15s;
}
.askee-tabs .nav-link:hover {
    background: #d1fae5;
    transform: translateY(-1px);
}
.askee-tabs .nav-link.active {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

/* ---------- Строка вопроса ---------- */
.askee-q-row {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #059669;
    border-radius: 12px;
    transition: all .18s;
    background: #fff;
}
.askee-q-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.14);
    border-left-color: #047857;
}

/* Стат-блок слева */
.askee-q-stats {
    min-width: 68px;
    background: linear-gradient(160deg, #ecfdf5, #d1fae5);
    border-radius: 10px;
    padding: 8px 6px;
    align-self: flex-start;
}
.askee-q-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #047857;
    line-height: 1;
}
.askee-q-stat-lbl {
    font-size: .68rem;
    color: #059669;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.askee-q-views {
    font-size: .72rem;
    color: #6b7280;
}

/* Аватар-инициал */
.askee-ava {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
    text-transform: uppercase;
}

.askee-q-title {
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    font-size: 1.02rem;
    line-height: 1.35;
}
.askee-q-title:hover {
    color: #047857;
}
.askee-pinned { margin-right: 4px; }

.askee-best-badge {
    color: #047857;
    font-size: .72rem;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
}

/* Чип категории в строке */
.askee-cat-chip {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 6px;
    padding: 1px 8px;
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
}
.askee-cat-chip:hover {
    background: #d1fae5;
    color: #065f46;
}

/* ---------- Авторы ---------- */
.askee-author {
    font-weight: 700;
    color: #047857;
    text-decoration: none;
}
.askee-author:hover {
    color: #065f46;
    text-decoration: underline;
}
.askee-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 4px;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.askee-cat-link {
    color: #6b7280;
    text-decoration: underline dotted;
}
.askee-cat-link:hover { color: #047857; }

/* ---------- Лучший ответ ---------- */
.askee-best-answer {
    border: 1px solid #34d399 !important;
    border-left: 4px solid #059669 !important;
    border-radius: 12px;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
}
.askee-best-mark {
    color: #047857;
    font-weight: 800;
    font-size: .85rem;
    background: linear-gradient(90deg, #d1fae5, transparent);
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-block;
}

/* Карточка ответа */
.askee-a-row {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
    transition: all .15s;
}
.askee-a-row:hover {
    border-left-color: #059669;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Теги (облако) ---------- */
.askee-tags .askee-tag,
.askee-tag {
    display: inline-block;
    background: #d1fae5;
    color: #047857;
    border-radius: 50px;
    padding: 3px 12px;
    margin: 2px 4px 2px 0;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.askee-tag:hover {
    background: #a7f3d0;
    color: #065f46;
    transform: translateY(-1px);
}

/* ---------- Сайдбар ---------- */
.askee-side-title {
    font-weight: 800;
    color: #047857;
    border-bottom: 2px solid #d1fae5;
    padding-bottom: 6px;
    margin-bottom: 10px;
}
.askee-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.askee-cat-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: .9rem;
    transition: all .15s;
    border: 1px solid transparent;
}
.askee-cat-pill:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    transform: translateX(3px);
    text-decoration: none;
}
.askee-cat-count {
    background: #ecfdf5;
    color: #047857;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 800;
    padding: 2px 9px;
}
.askee-expert {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.askee-expert-rank {
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: .95rem;
}
.askee-side-cta {
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
    border: 1px dashed #6ee7b7;
    border-radius: 14px;
}

/* ---------- Страница вопроса ---------- */
.askee-question-card {
    border: none;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.askee-question-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #34d399, #a7f3d0);
}
.askee-text {
    line-height: 1.65;
    word-break: break-word;
    font-size: .98rem;
}

/* Форма ответа */
.askee-answer-form textarea {
    border-radius: 12px;
    border: 1.5px solid #d1d5db;
    transition: all .15s;
}
.askee-answer-form textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.askee-answer-form .btn {
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 700;
}

.min-width-0 { min-width: 0; }

/* ---------- Голосование: горизонтальная пилюля ▲ +5 ▼ ---------- */
.askee-vote {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    align-self: flex-start;
    background: linear-gradient(160deg, #f0fdf4, #ecfdf5);
    border: 1px solid #d1fae5;
    border-radius: 50px;
    padding: 3px 6px;
    gap: 2px;
    white-space: nowrap;
}
.askee-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #9ca3af;
    font-size: .75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all .15s;
}
.askee-vote-btn:hover {
    transform: scale(1.1);
    color: #059669;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}
.askee-vote-btn.down:hover {
    color: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}
.askee-vote-btn.active.up,
.askee-vote.voted-up .up {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.45);
}
.askee-vote-btn.active.down,
.askee-vote.voted-down .down {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}
.askee-vote-count {
    font-weight: 800;
    font-size: .9rem;
    color: #374151;
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    padding: 0 2px;
}
.askee-vote.voted-up .askee-vote-count { color: #059669; }
.askee-vote.voted-down .askee-vote-count { color: #dc2626; }

/* Крупный вариант — для карточки вопроса */
.askee-vote-lg {
    padding: 4px 8px;
    gap: 4px;
}
.askee-vote-lg .askee-vote-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: .9rem;
}
.askee-vote-lg .askee-vote-count {
    font-size: 1.1rem;
    min-width: 34px;
}

/* Карма автора */
.askee-karma {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    border-radius: 50px;
    padding: 1px 8px;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.35);
}

/* Пилюля рейтинга в списке */
.askee-rating-pill {
    font-size: .72rem;
    font-weight: 800;
    border-radius: 50px;
    padding: 1px 8px;
    white-space: nowrap;
}
.askee-rating-pill.positive { background: #d1fae5; color: #047857; }
.askee-rating-pill.negative { background: #fee2e2; color: #b91c1c; }

/* ---------- Админка ---------- */
.askee-admin-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px dashed #d1fae5;
}
.askee-admin-q {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
.askee-admin-q-deleted { opacity: .6; }

/* ===================== ТЁМНАЯ ТЕМА ===================== */
body.dark .askee-title {
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
}
body.dark .askee-head,
body.dark .askee-question-card {
    background: #16281d;
    border: 1px solid #234233;
}
body.dark .askee-tabs .nav-link { color: #6ee7b7; }
body.dark .askee-tabs .nav-link:hover { background: #16281d; }
body.dark .askee-tabs .nav-link.active {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
}
body.dark .askee-q-row {
    background: #16281d;
    border-color: #234233;
    border-left-color: #34d399;
}
body.dark .askee-q-row:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); }
body.dark .askee-q-stats {
    background: linear-gradient(160deg, #1a3a2b, #234233);
}
body.dark .askee-q-stat-num,
body.dark .askee-author,
body.dark .askee-side-title,
body.dark .askee-best-mark { color: #6ee7b7; }
body.dark .askee-best-badge {
    color: #6ee7b7;
    background: #234233;
}
body.dark .askee-author:hover { color: #a7f3d0; }
body.dark .askee-q-stat-lbl { color: #34d399; }
body.dark .askee-q-title { color: #e5e7eb; }
body.dark .askee-q-title:hover { color: #6ee7b7; }
body.dark .askee-cat-chip { background: #234233; color: #9ca3af; }
body.dark .askee-cat-chip:hover { background: #2d5540; color: #a7f3d0; }
body.dark .askee-cat-link { color: #9ca3af; }
body.dark .askee-cat-link:hover { color: #6ee7b7; }
body.dark .askee-tag { background: #234233; color: #6ee7b7; }
body.dark .askee-tag:hover { background: #2d5540; color: #a7f3d0; }
body.dark .askee-cat-pill { color: #d1d5db; }
body.dark .askee-cat-pill:hover {
    background: #1a3a2b;
    border-color: #2d5540;
    color: #a7f3d0;
}
body.dark .askee-cat-count { background: #101f16; color: #6ee7b7; }
body.dark .askee-best-answer {
    background: linear-gradient(180deg, #16281d, #101f16) !important;
    border-color: #34d399 !important;
    border-left-color: #059669 !important;
}
body.dark .askee-best-mark {
    background: linear-gradient(90deg, #234233, transparent);
}
body.dark .askee-a-row {
    background: #16281d;
    border-color: #234233;
    border-left-color: #234233;
}
body.dark .askee-a-row:hover { border-left-color: #34d399; }
body.dark .askee-side-cta {
    background: linear-gradient(135deg, #16281d, #101f16);
    border-color: #234233;
}
body.dark .askee-admin-cat { border-color: #234233; }
body.dark .askee-admin-q { border-color: #234233; }
body.dark .askee-answer-form textarea {
    background: #101f16;
    border-color: #234233;
    color: #e5e7eb;
}
body.dark .askee-answer-form textarea:focus { border-color: #34d399; }
body.dark .askee-vote {
    background: linear-gradient(160deg, #16281d, #101f16);
    border-color: #234233;
}
body.dark .askee-vote-btn {
    background: #234233;
    color: #9ca3af;
    box-shadow: none;
}
body.dark .askee-vote-btn:hover {
    color: #6ee7b7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
body.dark .askee-vote-btn.down:hover { color: #f87171; }
body.dark .askee-vote-btn.active.up,
body.dark .askee-vote.voted-up .up {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
}
body.dark .askee-vote-btn.active.down,
body.dark .askee-vote.voted-down .down {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
body.dark .askee-vote-count { color: #d1d5db; }
body.dark .askee-vote-count { color: #d1d5db; }
body.dark .askee-vote.voted-up .askee-vote-count { color: #34d399; }
body.dark .askee-vote.voted-down .askee-vote-count { color: #f87171; }
body.dark .askee-rating-pill.positive { background: #234233; color: #6ee7b7; }
body.dark .askee-rating-pill.negative { background: #3f1d1d; color: #f87171; }
