/* Styles only for support.html. Loaded after style.css,
   so it reuses the same variables and font. */

/* ---------- Top bar ---------- */
.support-nav {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0a526;
    /* yellow: not great, not terrible */
}

/* ---------- Layout ---------- */
.support {
    justify-content: flex-start;
    /* this page is long, so don't vertically center it */
    gap: 72px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    padding: 14px 24px;
    border: 2px solid var(--accent);
    border-radius: 999px;
    /* huge radius = pill shape at any size */
    background: var(--accent);
    color: var(--accent-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

/* ---------- Search ---------- */
.search {
    display: flex;
    gap: 8px;
    max-width: 640px;
    margin-top: 28px;
}

.search input {
    flex: 1;
    min-width: 0;
    /* lets the input shrink instead of overflowing on small screens */
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
}

.search input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-result {
    margin-top: 16px;
    font-size: 13px;
    min-height: 1.7em;
    /* reserves space so the page doesn't jump when text appears */
}

/* ---------- Topic + contact cards ---------- */
.topic-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.topic,
.contact-card {
    padding: 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.topic {
    text-align: left;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.topic:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.topic small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-secondary);
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card h3 {
    font-size: 16px;
}

.contact-card p {
    font-size: 13px;
}

.contact-card .btn {
    align-self: flex-start;
    margin-top: auto;
    /* pushes the button to the bottom of the card */
}

#emailBtn {
    transition: transform 0.2s ease;
}

.fine-print {
    margin-top: 16px;
    font-size: 11px;
}

/* ---------- The "article" ---------- */
.article {
    margin-top: 16px;
    padding: 28px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
}

.article h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.helpful {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.helpful .btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* ---------- Chat bots ---------- */
.bot-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: row-reverse;
    /* newest bot appears to the left of the older ones */
    align-items: flex-end;
    gap: 12px;
    z-index: 50;
    pointer-events: none;
    /* the empty dock area shouldn't block clicks on the page */
}

.bot {
    pointer-events: auto;
    /* ...but the bots themselves should be clickable */
    width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
    /* the 1.4 overshoots, which gives the bounce */
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
}

.bot-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--accent);
    color: var(--accent-text);
}

.bot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-text);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.bot-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}

.bot-name small {
    display: block;
    font-size: 10px;
    font-weight: 300;
    opacity: 0.85;
}

.bot-close {
    padding: 4px;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.bot-log {
    height: 220px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
}

.msg.from-bot {
    align-self: flex-start;
    background: var(--bg);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.msg.from-you {
    align-self: flex-end;
    background: var(--accent);
    color: var(--accent-text);
    border-bottom-right-radius: 4px;
}

.msg.typing {
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.bot-form {
    display: flex;
    border-top: 2px solid var(--border);
}

.bot-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 12px;
}

.bot-form input:focus {
    outline: none;
}

.bot-form button {
    padding: 0 14px;
    border: none;
    background: none;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Cookie banner ---------- */
.cookie {
    position: fixed;
    left: 20px;
    bottom: 20px;
    max-width: 360px;
    padding: 20px;
    background: var(--text-primary);
    border-radius: var(--radius);
    z-index: 60;
}

/* flipped colors: dark banner in light mode, light banner in dark mode */
.cookie p {
    color: var(--bg);
    font-size: 12px;
    margin-bottom: 14px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie .btn {
    padding: 10px 18px;
    font-size: 12px;
}

.cookie .btn-ghost {
    color: var(--bg);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .support-nav {
        padding: 20px;
    }

    .support {
        gap: 56px;
    }

    .topic-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .search {
        flex-direction: column;
    }

    .bot-dock {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .bot {
        width: 100%;
    }

    .bot-log {
        height: 160px;
    }

    .cookie {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* People who turn off animations in their OS settings get no bouncing */
@media (prefers-reduced-motion: reduce) {
    .bot {
        animation: none;
    }

    .btn,
    .topic,
    #emailBtn {
        transition: none;
    }
}
