/*
 * Opt-in "Editorial" dark theme: minimal, typography-first, no cards.
 * Generous whitespace, hairline dividers, a serif display face for
 * the quotes themselves. Scoped under html.theme-editorial.
 */

html.theme-editorial {
    --ed-bg: #0d0d0d;
    --ed-text: #ededed;
    --ed-text-dim: #8a8a8a;
    --ed-accent: #cbb26a;
    --ed-hairline: rgba(255, 255, 255, 0.14);
}

html.theme-editorial body {
    background: var(--ed-bg);
    color: var(--ed-text);
    font-family: 'Figtree', sans-serif;
}

/* Header / nav */
html.theme-editorial header {
    background: var(--ed-bg) !important;
    border-bottom: 1px solid var(--ed-hairline);
    box-shadow: none;
}

html.theme-editorial header nav {
    background: transparent !important;
}

html.theme-editorial header span,
html.theme-editorial header a {
    color: var(--ed-text) !important;
    letter-spacing: 0.03em;
}

html.theme-editorial header a:hover {
    color: var(--ed-accent) !important;
}

html.theme-editorial header svg {
    fill: var(--ed-text);
}

html.theme-editorial header button.border {
    border-color: var(--ed-hairline);
    color: var(--ed-text);
}

html.theme-editorial header input#searchQuery {
    background: transparent;
    color: var(--ed-text);
    border: none;
    border-bottom: 1px solid var(--ed-hairline);
    border-radius: 0;
}

html.theme-editorial header input#searchQuery::placeholder {
    color: var(--ed-text-dim);
}

html.theme-editorial header button[type="submit"] {
    background: transparent !important;
    color: var(--ed-accent) !important;
    border: 1px solid var(--ed-accent);
    border-radius: 0;
}

html.theme-editorial header button[type="submit"]:hover {
    background: var(--ed-accent) !important;
    color: #0d0d0d !important;
}

/* Quote / conversation cards: no card chrome, just a divided block */
html.theme-editorial .quote-container {
    background: transparent;
    color: var(--ed-text);
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--ed-hairline);
    border-radius: 0;
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 20px;
}

html.theme-editorial .quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.6em;
    line-height: 1.5;
    color: var(--ed-text);
}

html.theme-editorial .author {
    display: block;
    margin-top: 18px;
    padding: 0;
    background: none;
    color: var(--ed-text-dim);
    font-family: 'Figtree', sans-serif;
    font-size: 0.8em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 1;
}

html.theme-editorial .author a {
    text-decoration: none;
    color: inherit;
}

html.theme-editorial .quote-btn {
    background: transparent;
    color: var(--ed-text);
    border: none;
    border-bottom: 1px solid var(--ed-hairline);
    border-radius: 0;
    padding: 8px 4px;
    margin-right: 16px;
    box-shadow: none;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

html.theme-editorial .quote-btn:hover {
    color: var(--ed-accent);
    border-color: var(--ed-accent);
    background: transparent;
    transform: none;
}

html.theme-editorial .author-title {
    text-shadow: none;
    color: var(--ed-text);
    font-family: 'Playfair Display', serif;
}

html.theme-editorial .chat-title {
    color: var(--ed-text);
    font-family: 'Playfair Display', serif;
}

/* Conversations */
html.theme-editorial .chat-container {
    background: transparent;
    box-shadow: none;
    border: 1px solid var(--ed-hairline);
    border-radius: 0;
}

html.theme-editorial .message {
    color: var(--ed-text);
    border-bottom: 1px solid var(--ed-hairline);
}

html.theme-editorial .message:nth-child(even) {
    background-color: transparent;
}

html.theme-editorial .message-username {
    color: var(--ed-accent) !important;
}

/* Settings bar / dropdowns */
html.theme-editorial .quotes-settings label,
html.theme-editorial .quotes-settings select,
html.theme-editorial select.form-select,
html.theme-editorial select.quote-dropdown {
    color: var(--ed-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ed-hairline);
    border-radius: 0;
}

/* Popup image preview */
html.theme-editorial .popup {
    border: 1px solid var(--ed-hairline);
    box-shadow: none;
    border-radius: 0;
}

/* Pagination */
html.theme-editorial .pagination a,
html.theme-editorial .pagination span {
    color: var(--ed-text-dim);
}

/* Theme picker control */
html.theme-editorial .theme-switch-label {
    color: var(--ed-text);
}

html.theme-editorial #theme-picker {
    background: transparent;
    color: var(--ed-text);
    border: 1px solid var(--ed-hairline);
    border-radius: 0;
}
