/* ============================================
   HELP CENTER PAGE  —  /help
   Editorial magazine layout. Prefix: help-
   ============================================ */

.help-page { width: 100%; overflow-x: hidden; }

/* ── Hero ──────────────────────────────────── */
.help-hero {
    background: linear-gradient(160deg, var(--antologa-secondary) 0%, #005570 100%);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.help-hero-inner { position: relative; z-index: 1; }

.help-hero-eyebrow {
    font-family: Inter, sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.14em !important;
    color: rgba(255,255,255,0.55) !important;
    display: block;
    margin-bottom: 0.5rem;
}

.help-hero-heading {
    font-family: Inter, sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    color: white;
    margin-bottom: 0.875rem;
}

.help-hero-subtitle {
    font-family: Nunito, sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 2rem;
}

/* Search */
.help-search-wrapper {
    max-width: 40rem;
    margin: 0 auto 1.75rem;
}

.help-search-field .mud-input-outlined { background: white !important; border-radius: 3rem !important; }
.help-search-field .mud-input-adornment { color: var(--antologa-gray) !important; }
.help-search-field input {
    font-family: Nunito, sans-serif !important;
    font-size: 1rem !important;
    border-radius: 3rem !important;
}

/* Audience filter chips */
.help-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.help-chip {
    font-family: Nunito, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2rem;
    padding: 0.375rem 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-transform: none;
}

.help-chip:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.help-chip--active {
    background: white !important;
    color: var(--antologa-secondary) !important;
    border-color: white !important;
}

.help-chip--chat {
    border-color: rgba(7,130,130,0.5);
}

.help-chip--chat.help-chip--active {
    background: var(--antologa-primary) !important;
    color: white !important;
    border-color: var(--antologa-primary) !important;
}

.help-chip--support {
    border-color: rgba(196,90,50,0.5);
}

.help-chip--support.help-chip--active {
    background: var(--antologa-terciary) !important;
    color: white !important;
    border-color: var(--antologa-terciary) !important;
}

/* ── Category Grid ──────────────────────────── */
.help-categories-section {
    padding: 3rem 0 2rem;
    background: var(--antologa-white);
    border-bottom: 1px solid var(--antologa-light-gray);
}

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

.help-cat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    background: white;
    border: 1.5px solid var(--antologa-light-gray);
    border-radius: 0.875rem;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.help-cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--cat-accent, var(--antologa-primary));
    border-radius: 0.875rem 0 0 0.875rem;
}

.help-cat-card:hover {
    border-color: var(--cat-accent, var(--antologa-primary));
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.help-cat-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.help-cat-name {
    font-family: Inter, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--antologa-dark);
    line-height: 1.3;
}

.help-cat-count {
    font-family: Nunito, sans-serif;
    font-size: 0.75rem;
    color: var(--antologa-gray);
}

/* ── Article Sections ───────────────────────── */
.help-articles-section {
    padding: 4rem 0 6rem;
    background: white;
}

.help-audience-block {
    margin-bottom: 3.5rem;
}

.help-audience-header {
    margin-bottom: 1.75rem;
}

.help-audience-label {
    display: inline-block;
    font-family: Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: white;
    padding: 0.3rem 0.875rem;
    border-radius: 2rem;
}

.help-category-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--antologa-light-gray);
}

.help-category-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.help-category-heading {
    font-family: Inter, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--antologa-dark);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--antologa-light-gray);
}

/* Editorial article card grid — 2 columns on desktop */
.help-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.help-article-card {
    background: var(--antologa-white);
    border-radius: 0.875rem;
    padding: 1.5rem;
    position: relative;
    border: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.help-article-card:hover {
    border-color: var(--antologa-light-gray);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.help-article-num {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--antologa-primary);
    margin-bottom: 0.5rem;
}

.help-article-title {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--antologa-dark);
    margin: 0 0 0.625rem;
    line-height: 1.35;
}

.help-article-body {
    font-family: Nunito, sans-serif;
    font-size: 0.93rem;
    color: #505050;
    line-height: 1.72;
    margin: 0;
}

/* Error-message callout for troubleshooting cards — shows the literal
   on-screen message a user sees, styled distinct from the explanation. */
.help-article-error {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--antologa-terciary);
    background: rgba(196, 90, 50, 0.07);
    border-left: 3px solid var(--antologa-terciary);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.625rem 0.875rem;
    margin: 0 0 0.875rem;
}

.help-article-error::before {
    content: "⚠ ";
    font-family: Nunito, sans-serif;
    font-weight: 700;
}

/* ── Chat ───────────────────────────────────── */
.help-chat-section {
    padding: 3rem 0 5rem;
    background: var(--antologa-white);
}

.help-chat-window {
    background: white;
    border: 1px solid var(--antologa-light-gray);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 28rem;
}

.help-chat-messages {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 24rem;
}

.help-chat-msg { display: flex; }
.help-chat-msg--user { justify-content: flex-end; }
.help-chat-msg--bot  { justify-content: flex-start; }

.help-chat-bubble {
    font-family: Nunito, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 80%;
    padding: 0.75rem 1.125rem;
    border-radius: 1.25rem;
}

.help-chat-msg--user .help-chat-bubble {
    background: var(--antologa-primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.help-chat-msg--bot .help-chat-bubble {
    background: var(--antologa-white);
    color: var(--antologa-dark);
    border: 1px solid var(--antologa-light-gray);
    border-bottom-left-radius: 0.25rem;
}

/* Typing dots */
.help-chat-bubble--typing {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.875rem 1.125rem;
}

.help-chat-bubble--typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--antologa-gray);
    animation: helpTypingDot 1.2s infinite ease-in-out;
}

.help-chat-bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.help-chat-bubble--typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes helpTypingDot {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-5px); }
}

.help-chat-input-row {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--antologa-light-gray);
    background: white;
}

.help-chat-input { flex: 1; }
.help-chat-input .mud-input-outlined { border-radius: 2rem !important; }

.help-chat-send {
    min-width: 2.75rem !important;
    border-radius: 2rem !important;
    padding: 0 1rem !important;
}

/* ── Live Support ───────────────────────────── */
.help-support-section {
    padding: 3rem 0 5rem;
    background: var(--antologa-white);
}

.help-support-card {
    background: white;
    border: 1px solid var(--antologa-light-gray);
    border-radius: 1rem;
    padding: 2.5rem;
}

.help-support-eyebrow {
    font-family: Inter, sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.12em !important;
    color: var(--antologa-primary) !important;
    display: block;
    margin-bottom: 0.5rem;
}

.help-support-heading {
    font-family: Inter, sans-serif !important;
    font-weight: 700 !important;
    color: var(--antologa-dark) !important;
    margin-bottom: 0.5rem;
}

.help-support-subtitle {
    font-family: Nunito, sans-serif !important;
    color: var(--antologa-gray) !important;
    margin-bottom: 1.75rem !important;
}

.help-support-field { margin-bottom: 1.25rem !important; }

.help-support-submit { border-radius: 0.5rem !important; text-transform: none !important; font-family: Nunito, sans-serif !important; font-weight: 700 !important; }

.help-support-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 0;
    text-align: center;
}

/* ── Empty State ────────────────────────────── */
.help-empty-state { padding: 4rem 0; }

/* ── Still Need Help CTA ────────────────────── */
.help-cta-section {
    background: var(--antologa-light-gray);
    padding: 5rem 1.5rem;
}

.help-cta-heading {
    font-family: Inter, sans-serif !important;
    font-weight: 700 !important;
    color: var(--antologa-dark) !important;
    margin-bottom: 0.75rem;
}

.help-cta-body {
    font-family: Nunito, sans-serif !important;
    color: #505050 !important;
    font-size: 1.05rem !important;
    max-width: 30rem;
    margin: 0 auto 2rem auto;
    line-height: 1.68;
}

.help-cta-btn {
    font-family: Nunito, sans-serif !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 0.5rem !important;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
    .help-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .help-articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .help-hero { padding: 3.5rem 1rem 3rem; }
    .help-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
    .help-cat-card { padding: 0.875rem 1rem; }
    .help-articles-section { padding: 2.5rem 0 3.5rem; }
    .help-cta-section { padding: 3.5rem 1.5rem; }
    .help-support-card { padding: 1.5rem; }
}
