/* ==========================================================
   PositiveConnections-Agent
   Base Styles
   ========================================================== */

:root {
    --color-text: #222;
    --color-muted: #666;
    --color-border: #eaeaea;
    --color-accent: #6d5ce8;
    --color-accent-dark: #5843d1;
    --color-cta: #1dbf73;
    --color-cta-dark: #17a862;
    --color-bg-subtle: #f7f9fc;
    --radius: 8px;
    --radius-lg: 16px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.7;

    color: var(--color-text);

    background: #ffffff;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    padding: 60px 0;
}

main:has(.hero) {
    padding-top: 0;
    padding-bottom: 0;
}

/* ==========================================================
   Layout
   ========================================================== */

.main-content {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* ==========================================================
   Typography
   ========================================================== */

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 0.6em;
    font-weight: 700;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    margin-top: 1.6em;
    font-size: 1.6rem;
}

h3 {
    margin-top: 1.3em;
    font-size: 1.25rem;
}

h4 {
    margin-top: 1.1em;
    font-size: 1.05rem;
}

p {
    margin-bottom: 1em;
}

strong {
    font-weight: 700;
    color: var(--color-text);
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.5em;
}

li:last-child {
    margin-bottom: 0;
}

blockquote {
    margin: 1.5em 0;
    padding: var(--space-2) var(--space-3);
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-subtle);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-muted);
    font-style: italic;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   Buttons
   ========================================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-cta);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-cta-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--color-accent-dark);
}

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

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-dark {
    background: #1a1a1a;
    color: #ffffff;
    border-radius: var(--radius);
}

.btn-dark:hover {
    background: #000000;
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ==========================================================
   Header / Navigation
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.site-brand a {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
}

.site-brand a:hover {
    text-decoration: none;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin-bottom: 0;
}

.site-nav a {
    color: var(--color-text);
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 72px 0 88px;
    background: radial-gradient(circle at top, #f1edff 0%, #fdf2f6 55%, #ffffff 100%);
    text-align: center;
}

.hero-inner {
    max-width: 720px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.hero-heading {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: var(--space-2);
}

.hero-heading-sub {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-muted);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: var(--space-3);
}

.gender-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 2px solid var(--color-border);
    background: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.gender-option:has(input:checked) {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.gender-option input {
    accent-color: var(--color-accent);
}

.hero-footnote {
    margin-top: var(--space-2);
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* ==========================================================
   Quick Search + Profile Grid
   ========================================================== */

.quick-search-section {
    padding: var(--space-4) 0;
}

.quick-search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-4);
    align-items: start;
}

.search-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.search-panel h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-muted);
}

.search-field select,
.search-field input {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
    color: var(--color-text);
    background: #ffffff;
}

.search-submit {
    margin-top: var(--space-1);
    width: 100%;
}

.profile-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.profile-column h2 {
    margin-top: 0;
    padding-bottom: var(--space-1);
    border-bottom: 1px solid var(--color-border);
    font-size: 1.3rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.profile-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.profile-name {
    font-weight: 700;
    margin-bottom: 0;
}

.profile-meta {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* ==========================================================
   Page / Article Content
   ========================================================== */

.page {
    max-width: 760px;
    margin: 0 auto;
}

.page-content,
.article-content {
    margin-top: 1.5em;
}

/* ==========================================================
   Article Page Layout (article + sidebar)
   ========================================================== */

.article-layout {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-4);
    align-items: start;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: sticky;
    top: 96px;
}

.related-posts {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.related-posts h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.related-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-posts-list li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
}

.related-posts-list li:last-child {
    border-bottom: none;
}

.related-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--color-text);
}

.related-post-item:hover {
    text-decoration: none;
}

.related-post-item:hover .related-post-title {
    color: var(--color-accent);
}

.related-post-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.related-post-title {
    font-weight: 700;
    line-height: 1.3;
}

/* ==========================================================
   FAQ Accordion
   ========================================================== */

.faq-list {
    margin: 1.5em 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease;
}

.faq-item[open] {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item summary + p {
    margin-top: var(--space-2);
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   Author Box / Share
   ========================================================== */

.author-box {
    display: flex;
    gap: var(--space-3);
    margin: var(--space-4) 0 var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background: var(--color-bg-subtle);
}

.author-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.author-role {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
}

.author-bio {
    margin-bottom: var(--space-2);
}

.share-box h2 {
    font-size: 1.1rem;
    margin-top: 0;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.social-icons a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}

.page-content > p:first-of-type,
.article-content > p:first-of-type {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--color-muted);
    margin-bottom: 1.4em;
}

.page-content img,
.article-content img {
    border-radius: var(--radius);
    margin: 1.2em 0;
}

/* ==========================================================
   Blog List
   ========================================================== */

.blog-list {
    list-style: none;
    margin: 1.5em 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-3);
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.blog-list h2 {
    margin: 0 0 0.5em;
    font-size: 1.2rem;
}

.blog-list h2 a {
    color: var(--color-text);
}

.blog-list h2 a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.blog-list p {
    color: var(--color-muted);
    margin-bottom: 0;
    flex-grow: 1;
}

.blog-card-meta {
    display: inline-block;
    margin-bottom: var(--space-1);
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--color-bg-subtle);
    color: var(--color-muted);
    font-size: 0.8rem;
    align-self: flex-start;
}

/* ==========================================================
   Pagination
   ========================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.pagination-status {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-4) 0 var(--space-3);
    margin-top: 60px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-1) var(--space-3);
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-copyright {
    text-align: center;
    margin-bottom: 0;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .page-content > p:first-of-type,
    .article-content > p:first-of-type {
        font-size: 1.08rem;
    }

    main {
        padding: 40px 0;
    }

    .hero-heading {
        font-size: 2.4rem;
    }

    .hero-heading-sub {
        font-size: 1.1rem;
    }

    .quick-search-layout {
        grid-template-columns: 1fr;
    }

    .profile-columns {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav ul {
        gap: 16px;
    }

    .site-header-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    main {
        padding: 28px 0;
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    blockquote {
        padding: var(--space-1) var(--space-2);
    }

    .hero {
        padding: 48px 0 56px;
    }

    .hero-heading {
        font-size: 1.9rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
    }
}
