/* ==========================================================
   AnimeHub - Страница «Центр помощи» (/help)
   ========================================================== */

.help-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 20px;
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .help-container {
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

.help-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.help-back-link:hover {
    color: #ff3b5c;
    transform: translateX(-3px);
}

/* Hero блок */
.help-hero {
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.14) 0%, rgba(20, 21, 28, 0.7) 100%);
    border: 1px solid rgba(255, 59, 92, 0.25);
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.help-hero::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 59, 92, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.help-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 59, 92, 0.15);
    color: #ff3b5c;
    border: 1px solid rgba(255, 59, 92, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.help-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

@media (max-width: 768px) {
    .help-hero {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .help-hero h1 {
        font-size: 24px;
    }
}

.help-hero-sub {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 20px;
    max-width: 680px;
}

/* Поисковая строка базы знаний */
.help-search-wrap {
    position: relative;
    max-width: 620px;
}

.help-search-input {
    width: 100%;
    background: rgba(14, 15, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 13px 18px 13px 44px;
    color: #ffffff;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.help-search-input:focus {
    border-color: #ff3b5c;
    background: rgba(20, 21, 28, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.18);
}

.help-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

/* Сетка категорий */
.help-categories-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.help-category-card {
    background: #121319;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 59, 92, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.help-cat-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.help-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3b5c;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.help-category-card:hover .help-cat-icon {
    transform: scale(1.08);
    background: rgba(255, 59, 92, 0.15);
}

.help-cat-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.help-cat-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 16px;
    line-height: 1.5;
}

.help-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ff3b5c;
    margin-top: auto;
}

.help-category-card:hover .help-cat-link svg {
    transform: translateX(3px);
}

.help-cat-link svg {
    transition: transform 0.2s ease;
}

/* Секции руководств и инструкций */
.help-section {
    background: #121319;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 22px;
    scroll-margin-top: 86px;
    transition: border-color 0.2s ease;
}

@media (max-width: 768px) {
    .help-section {
        padding: 20px 18px;
        border-radius: 14px;
    }
}

.help-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.help-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3b5c;
    flex-shrink: 0;
}

.help-section h2 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.help-article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-article-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 18px;
}

.help-article-item h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.help-article-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 10px;
    line-height: 1.6;
}

.help-article-item p:last-child {
    margin-bottom: 0;
}

.help-steps-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13.5px;
    line-height: 1.6;
}

.help-steps-list li {
    margin-bottom: 6px;
}

.help-steps-list li:last-child {
    margin-bottom: 0;
}

.help-steps-list strong {
    color: #ffffff;
}

.help-tip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-tip svg {
    color: #60a5fa;
    flex-shrink: 0;
}

/* Нижний баннер поддержки */
.help-footer-card {
    background: linear-gradient(135deg, rgba(20, 21, 28, 0.95) 0%, rgba(28, 29, 39, 0.85) 100%);
    border: 1px solid rgba(255, 59, 92, 0.25);
    border-radius: 18px;
    padding: 30px 28px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.help-footer-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.help-footer-card p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0;
}

.help-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

.help-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-action-btn.primary {
    background: #ff3b5c;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 59, 92, 0.3);
}

.help-action-btn.primary:hover {
    background: #ff5270;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 92, 0.45);
}

.help-action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.help-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
