/*
Theme Name: Soberise
Theme URI: https://soberise.net
Author: Soberise Team
Description: Official website theme for Soberise — sobriety tracker app. Dark wellness aesthetic with teal accents.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: soberise
Tags: dark, wellness, blog, landing-page, custom-menu
*/

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0f131f;
    color: #dfe2f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    letter-spacing: -0.005em;
}

/* Display / heading typography — Fraunces modern serif for premium, calm feel.
   Headings use SOFT axis for softened glyph edges (warm wellness tone) and
   tighter optical sizing for crisp display rendering at large sizes. */
h1, h2, .display-serif {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 96, 'SOFT' 50;
    line-height: 1.08;
}

h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.entry-title, .post-title, .article-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
    line-height: 1.05;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-nav {
    background: rgba(15, 19, 31, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.signature-gradient {
    background: linear-gradient(135deg, #46f1c5 0%, #00d4aa 100%);
}

/* Blog styles */
.prose-soberise h1,
.prose-soberise h2 {
    color: #dfe2f4;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 96, 'SOFT' 50;
    line-height: 1.15;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose-soberise h3 {
    color: #dfe2f4;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.prose-soberise p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.prose-soberise a {
    color: #46f1c5;
    text-decoration: underline;
}

.prose-soberise ul,
.prose-soberise ol {
    color: #94a3b8;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose-soberise li {
    margin-bottom: 0.5rem;
}

.prose-soberise blockquote {
    border-left: 3px solid #46f1c5;
    padding-left: 1.5rem;
    color: #bacac2;
    font-style: italic;
    margin: 2rem 0;
}

/* WordPress alignment classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* ── Article prose ─────────────────────────────────── */
.prose-soberise {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.prose-soberise h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #dfe2f4;
    margin: 2.8rem 0 1rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.prose-soberise h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c8d0e8;
    margin: 2rem 0 0.75rem;
}

.prose-soberise h2:first-child,
.prose-soberise h3:first-child { margin-top: 0; }

.prose-soberise strong {
    color: #dfe2f4;
    font-weight: 700;
}

.prose-soberise img {
    border-radius: 1rem;
    margin: 1.5rem auto;
    display: block;
    max-width: 100%;
}

/* Callout blockquotes */
.prose-soberise blockquote {
    background: rgba(70, 241, 197, 0.05);
    border-left: 3px solid #46f1c5;
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem;
    color: #bacac2;
    font-style: normal;
    margin: 1.75rem 0;
}

.prose-soberise blockquote p { margin-bottom: 0; color: inherit; }

/* Tables — fallback for non-bb-compare tables */
.prose-soberise table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.9375rem;
}
.prose-soberise th {
    background: rgba(70,241,197,.1);
    color: #46f1c5;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(70,241,197,.2);
    word-break: break-word;
}
.prose-soberise td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #94a3b8;
    vertical-align: top;
    word-break: break-word;
}
.prose-soberise tr:last-child td { border-bottom: none; }

/* FAQ accordion blocks */
.prose-soberise details {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.prose-soberise details summary {
    font-weight: 700;
    color: #dfe2f4;
    cursor: pointer;
    list-style: none;
    padding-right: 1.5rem;
    position: relative;
}
.prose-soberise details summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: #46f1c5;
    font-size: 1.2rem;
    line-height: 1;
}
.prose-soberise details[open] summary::after { content: '−'; }
.prose-soberise details p { margin-top: 0.75rem; margin-bottom: 0; }

/* Hide image prompt comments from showing as blocks */
.prose-soberise .bbcai-image-placeholder { display: none; }

/* FAQ bb-faq block — dark theme override (!important перебиває inline <style> в блоці) */
.bb-faq { margin: 40px 0 !important; }
.bb-faq-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #dfe2f4 !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid rgba(255,255,255,.1) !important;
}
.bb-faq-item {
    margin-bottom: 10px !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.bb-faq-item h3 {
    margin: 0 !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #dfe2f4 !important;
    background: rgba(255,255,255,.04) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
.bb-faq-item p {
    margin: 0 !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #94a3b8 !important;
}

/* Warning callout (Увага / Типова помилка) — new generated articles */
.prose-soberise blockquote.callout-warning {
    background: rgba(251, 191, 36, 0.08);
    border-left: 3px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.prose-soberise blockquote.callout-warning p {
    color: #d4b483;
    margin-bottom: 0;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.prose-soberise blockquote.callout-warning strong {
    color: #f59e0b;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Medical disclaimer block — override inline styles baked into post content */
.bbcai-medical-disclaimer {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 0 14px 14px 0 !important;
    padding: 1.25rem 1.5rem !important;
    margin: 1.5rem 0 2rem !important;
    font-family: inherit !important;
    color: #d4b483 !important;
}

.bbcai-medical-disclaimer p {
    margin: 0 !important;
    font-size: 0.9375rem !important;
    line-height: 1.75 !important;
    color: #d4b483 !important;
}

.bbcai-medical-disclaimer strong {
    color: #f59e0b !important;
    font-weight: 800 !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    margin-right: 0.25rem !important;
}

/* List markers — Tailwind resets these, restore explicitly */
.prose-soberise ul {
    list-style-type: disc !important;
}

.prose-soberise ol {
    list-style-type: decimal !important;
}

/* Mobile */
@media (max-width: 640px) {
    .prose-soberise { font-size: 1rem; }
    .prose-soberise h2 { font-size: 1.35rem; }
    .prose-soberise table { font-size: 0.8125rem; }
    .prose-soberise td, .prose-soberise th { padding: 8px 10px; }
}

/* Hide AI image placeholders only in rendered article/page content. */
.prose-soberise .bbcai-hero-placeholder,
.prose-soberise .bbcai-inline-placeholder { display: none !important; }

/* Pagination */
ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.page-numbers li { list-style: none; }

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #bacac2;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.2s;
}

a.page-numbers:hover {
    color: #46f1c5;
    background: rgba(70, 241, 197, 0.08);
    border-color: rgba(70, 241, 197, 0.3);
}

.page-numbers.current {
    color: #00382b;
    background: #46f1c5;
    border-color: #46f1c5;
    font-weight: 700;
}

.page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: #85948d;
    min-width: 32px;
    padding: 0;
}

.prev.page-numbers,
.next.page-numbers {
    padding: 0 12px;
}

.prev.page-numbers .material-symbols-outlined,
.next.page-numbers .material-symbols-outlined {
    font-size: 20px;
}
