/* assets/css/pages/help.css - Help Center page styles (shared styles: assets/css/public-layout.css) */

body.dark .navbar,
body.dark .footer,
body.dark .card,
body.dark .benefit-card,
body.dark .pill-role,
body.dark .cta-box,
body.dark .sidebar-overlay,
body.dark .sidebar,
body.dark .who-card,
body.dark .help-card {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark .ai-chat-input input::placeholder {
    color: #94a3b8 !important;
}

body.dark .help-card .help-icon {
    background: #2d3a52 !important;
    color: #7aa9ff !important;
}

body.dark .search-box input {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark .search-box input::placeholder {
    color: #94a3b8 !important;
}

body.dark .search-box input:focus {
    border-color: #0d6efd !important;
}

body.dark .search-box .search-btn {
    background: #0d6efd !important;
}

body.dark .category-tabs button {
    color: #94a3b8 !important;
}

body.dark .category-tabs button:hover {
    color: #7aa9ff !important;
    background: #2d3a52 !important;
}

body.dark .category-tabs button.active {
    color: #7aa9ff !important;
    background: #2d3a52 !important;
    border-color: #7aa9ff !important;
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

body.dark .btn-outline {
    border-color: #475569;
    color: #e2e8f0;
}

body.dark .btn-outline:hover {
    background: #2d3a52;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    padding: 30px 0 30px;
    background: #f6f9fc;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
    transition: background 0.3s;
}

body.dark .page-header {
    background: #0f172a;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.05rem;
    color: #4a5c72;
}

body.dark .page-header p {
    color: #94a3b8;
}

.page-header .breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5c72;
    margin-top: 6px;
}

body.dark .page-header .breadcrumb {
    color: #94a3b8;
}

.page-header .breadcrumb a {
    color: #0d6efd;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================================
   SEARCH BOX
   ============================================================ */

.search-section {
    padding: 20px 0 30px;
}

.search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 12px;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    background: #fff;
    color: #0b1e33;
}

.search-box input:focus {
    border-color: #0d6efd;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box .search-btn {
    padding: 14px 28px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-box .search-btn:hover {
    background: #0b5ed7;
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */

.category-section {
    padding: 10px 0 20px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid rgba(13, 110, 253, 0.06);
    padding-bottom: 8px;
}

.category-tabs button {
    padding: 10px 22px;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5c72;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s;
}

.category-tabs button:hover {
    color: #0d6efd;
    background: #edf4fe;
}

.category-tabs button.active {
    color: #0d6efd;
    background: #edf4fe;
}

.category-tabs button i {
    margin-right: 6px;
}

body.dark .category-tabs button {
    color: #94a3b8;
}

body.dark .category-tabs button:hover {
    color: #7aa9ff;
    background: #2d3a52;
}

body.dark .category-tabs button.active {
    color: #7aa9ff;
    background: #2d3a52;
}

/* ============================================================
   HELP CARDS
   ============================================================ */

.help-cards-section {
    padding: 20px 0 60px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.help-card {
    display: block;
    color: inherit;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.06);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.help-card .help-icon {
    width: 64px;
    height: 64px;
    background: #edf4fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.8rem;
    margin: 0 auto 12px;
}

.help-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.help-card p {
    font-size: 0.85rem;
    color: #4a5c72;
    margin-bottom: 0;
}

body.dark .help-card p {
    color: #94a3b8;
}

.help-card .card-count {
    display: inline-block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 6px;
    background: #f1f5f9;
    padding: 2px 12px;
    border-radius: 40px;
}

body.dark .help-card .card-count {
    background: #2d3a52;
    color: #94a3b8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .phone-popup {
        right: 55px;
        min-width: 180px;
    }
    .lang-popup {
        right: 55px;
        min-width: 130px;
    }
    .ai-chat-widget {
        width: 340px;
        height: 460px;
        right: 80px;
        bottom: 20px;
    }
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-actions .btn {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .navbar .container {
        flex-wrap: wrap;
    }
    .nav-actions {
        margin-left: auto;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .help-grid {
        grid-template-columns: 1fr 1fr;
    }
    .category-tabs button {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    .search-box {
        flex-direction: column;
    }
    .search-box input {
        width: 100%;
        border-radius: 30px;
    }
    .search-box .search-btn {
        width: 100%;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .sidebar {
        width: 280px;
        left: -300px;
    }
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 6px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    .floating-btn .tooltip,
    .ai-chat-toggle .tooltip {
        display: none;
    }
    .phone-popup {
        right: 48px;
        min-width: 160px;
        bottom: 0;
    }
    .phone-popup .phone-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 48px;
        min-width: 120px;
        bottom: 0;
    }
    .lang-popup .lang-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .ai-chat-widget {
        width: 300px;
        height: 420px;
        right: 70px;
        bottom: 16px;
    }
    .ai-chat-messages {
        padding: 10px 14px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
    .ai-chat-header {
        padding: 10px 14px;
        min-height: 50px;
    }
    .ai-chat-header .avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.8rem;
    }
    .ai-chat-input {
        padding: 8px 12px 12px;
        gap: 6px;
    }
    .ai-chat-input input {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-height: 34px;
    }
    .ai-chat-input button {
        font-size: 0.8rem;
        padding: 6px 14px;
        min-height: 34px;
    }
    .quick-replies {
        padding: 0 12px 6px;
    }
    .quick-replies button {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .help-grid {
        grid-template-columns: 1fr;
    }
    .category-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    .category-tabs button {
        width: 100%;
        text-align: center;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
    .floating-actions {
        bottom: 12px;
        right: 12px;
        gap: 5px;
    }
    .phone-popup {
        right: 42px;
        min-width: 140px;
        bottom: 0;
        padding: 8px 0;
        border-radius: 12px;
    }
    .phone-popup .phone-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 8px;
    }
    .phone-popup .phone-item i {
        width: 16px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 42px;
        min-width: 100px;
        bottom: 0;
        padding: 6px 0;
        border-radius: 12px;
    }
    .lang-popup .lang-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
    .ai-chat-widget {
        width: 280px;
        height: 380px;
        right: 60px;
        bottom: 12px;
        border-radius: 16px;
    }
    .ai-chat-messages {
        padding: 10px 12px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.75rem;
        padding: 6px 10px;
        max-width: 90%;
    }
    .ai-chat-header {
        padding: 8px 12px;
        min-height: 44px;
    }
    .ai-chat-header .avatar {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.75rem;
    }
    .ai-chat-header .header-info p {
        font-size: 0.6rem;
    }
    .ai-chat-input {
        padding: 6px 10px 10px;
        gap: 5px;
    }
    .ai-chat-input input {
        font-size: 0.75rem;
        padding: 5px 10px;
        min-height: 30px;
    }
    .ai-chat-input button {
        font-size: 0.75rem;
        padding: 5px 12px;
        min-height: 30px;
    }
    .quick-replies {
        padding: 0 10px 4px;
        gap: 4px;
    }
    .quick-replies button {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}

@media (max-width: 400px) {
    .phone-popup {
        right: 38px;
        min-width: 120px;
    }
    .phone-popup .phone-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .lang-popup {
        right: 38px;
        min-width: 90px;
    }
    .lang-popup .lang-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .ai-chat-widget {
        width: 250px;
        height: 340px;
        right: 52px;
    }
    .ai-chat-messages {
        padding: 8px 10px;
    }
    .ai-chat-messages .message {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    .ai-chat-input input {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-height: 26px;
    }
    .ai-chat-input button {
        font-size: 0.7rem;
        padding: 4px 10px;
        min-height: 26px;
    }
}
