/*
Theme Name: Convo Theme
Theme URI: https://example.com/
Author: You
Author URI: https://example.com/
Description: A clean, conversational app–inspired light theme with soft cards, rounded corners, and a sidebar blog layout.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: convo-theme
*/

:root {
    --page-bg: #f4f4f5;he
    --page-bg-soft: #e5e7eb;
    --content-bg: #ffffff;
    --content-bg-soft: #f9fafb;
    --border-subtle: #e5e7eb;
    --border-strong: #d4d4d8;
    --accent: #FEA20C;                    /* main accent */
    --accent-soft: #ffb94c;               /* lighter accent for hover effects */
    --accent-soft-bg: rgba(254, 162, 12, 0.12); /* soft background highlight */
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --text-softer: #9ca3af;
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.06);
    --radius-md: 0.6rem;
    --radius-lg: 0.9rem;
    --radius-pill: 999px;
    --transition-fast: 0.15s ease-out;
}




/* Reset-ish */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #ffffff 0, #f4f4f5 40%, #e5e7eb 100%);
    color: var(--text-main);
    line-height: 1.6;
}

/* Layout */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header-shell {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(
        180deg,
        rgba(244, 244, 245, 0.95),
        rgba(244, 244, 245, 0.92),
        rgba(244, 244, 245, 0.88)
    );
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-block {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.brand-icon {
    width: 100px;
    height: 100px;
    overflow: hidden;     /* keeps the image inside the shape */
    flex-shrink: 0;       /* prevents the icon from shrinking */
    border-radius: 12px;  /* or 999px if you want a circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* fills the container nicely */
    display: block;
}

.brand-text-title {
    font-size: 2.8rem;   /* ~3× bigger than before */
    font-weight: 600;
    line-height: 1.1;
    color: var(--accent);    /* ← use your #FEA20C */
}

.brand-text-tagline {
    font-size: 1.6rem;   /* also scaled up proportionally */
    color: var(--text-muted);
    line-height: 1.2;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-nav a {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.header-nav a:hover {
    background: var(--accent-soft-bg);
    color: var(--accent);
    border-color: rgba(16, 163, 127, 0.4);
}

.header-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-softer);
}

/* Main content */

.site-main-shell {
    flex: 1;
}

.site-main-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 2.5rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.9fr);
    gap: 1.5rem;
    align-items: flex-start;
}

/* Card-like “conversational” posts */

.post-card {
    background: var(--content-bg);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    margin-bottom: 0.9rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.post-card--sticky {
    border: 1px solid rgba(254, 162, 12, 0.65);           /* #FEA20C-ish */
    box-shadow: 0 0 0 1px rgba(254, 162, 12, 0.18), var(--shadow-soft);
    background: linear-gradient(135deg, #ffffff, #fff7ea); /* optional warmer bg */
}


.post-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.post-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.post-card-title a {
    text-decoration: none;
    color: var(--text-main);
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.post-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.post-card-sticky-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--accent-soft-bg);
    color: var(--accent);
    border: 1px solid rgba(254, 162, 12, 0.7);  /* or: border: 1px solid var(--accent); */
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: #111827;
}

.post-card-footer {
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.read-more-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Single post / page */

.article-shell {
    background: var(--content-bg);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.article-header {
    margin-bottom: 0.6rem;
}

.article-title {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 650;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.article-content {
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

.article-content p {
    margin: 0.6rem 0;
}

.article-content a {
    color: var(--accent);
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content pre,
.article-content code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
}

.article-content pre {
    background: var(--content-bg-soft);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
}

/* Sidebar */

.sidebar-shell {
    position: sticky;
    top: 4.1rem; /* below header */
}

.sidebar-card {
    background: var(--content-bg);
    border-radius: var(--radius-lg);
    padding: 0.85rem 0.9rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.9rem;
}

.sidebar-title {
    margin: 0 0 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-softer);
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 0.35rem;
}

.sidebar-list a {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-muted);
}

.sidebar-list a:hover {
    color: var(--accent);
}

/* Widgets */

.widget {
    margin-bottom: 0.8rem;
}

.widget-title {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-softer);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    margin-bottom: 0.3rem;
}

.widget ul li a {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-muted);
}

.widget ul li a:hover {
    color: var(--accent);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 0.8rem 1.25rem 1rem;
    font-size: 0.78rem;
    color: var(--text-softer);
    background: #f9fafb;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* No content */

.no-content-card {
    background: var(--content-bg);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pagination */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.pagination a,
.pagination span {
    font-size: 0.8rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-muted);
    background: #ffffff;
}

.pagination span.current {
    border-color: rgba(16, 163, 127, 0.7);
    background: var(--accent-soft-bg);
    color: var(--accent);
}

.pagination a:hover {
    border-color: rgba(16, 163, 127, 0.4);
    color: var(--accent);
}

/* Responsiveness */

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar-shell {
        position: static;
    }

    .site-header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .header-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .site-main-inner {
        padding: 1rem 0.8rem 2.2rem;
    }
}

/* Force-remove underline from the header brand link */
header .brand-block,
header .brand-block:link,
header .brand-block:visited,
header .brand-block:hover,
header .brand-block:active {
    text-decoration: none !important;
    border-bottom: none !important; /* for themes that underline via border */
    color: inherit;
}

/* Make single post pages use more of the screen horizontally */
body.single-post .site-main-inner {
    max-width: 2560px;   /* was 1100px – you can bump this higher if you like */
}

/* On single post pages, give the content more horizontal space */
body.single-post .layout-grid {
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
}


/* Default inline code color */
code {
    color: #e83e8c;
}

/* But DO NOT apply that color inside preformatted code blocks */
pre code {
    color: inherit;   /* or choose another color if you prefer */
}
