/* =============================================
   BASIC BLOGGER CMS — Material Design 3
   ============================================= */

/* ===== GOOGLE MATERIAL FONTS & TOKENS ===== */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Google+Sans+Display:wght@400;700&display=swap');

:root {
    /* MD3 Color tokens (overridden by PHP inline style for theme) */
    --primary-color:       #1a73e8;
    --primary-on:          #ffffff;
    --primary-container:   #d3e3fd;
    --secondary-color:     #5f6368;
    --surface:             #ffffff;
    --surface-variant:     #f1f3f4;
    --surface-dim:         #e8eaed;
    --on-surface:          #202124;
    --on-surface-variant:  #5f6368;
    --outline:             #dadce0;
    --outline-variant:     #e8eaed;
    --header-color:        #202124;
    --footer-color:        #202124;
    --bg-color:            #f8f9fa;
    --error:               #d93025;

    /* Elevation (MD3 tonal surfaces) */
    --elev-1: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --elev-2: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
    --elev-3: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.3);
    --elev-4: 0 6px 10px 4px rgba(60,64,67,.15), 0 2px 3px rgba(60,64,67,.3);

    /* Shape */
    --radius-xs:  4px;
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-pill:9999px;

    /* Motion */
    --motion-standard: cubic-bezier(.2,0,0,1);
    --motion-decel:    cubic-bezier(0,0,0,1);
    --dur-short:  150ms;
    --dur-medium: 300ms;
    --dur-long:   500ms;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--on-surface);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-color); transition: color var(--dur-short) var(--motion-standard); }
img { display: block; }

/* ===== MATERIAL TYPOGRAPHY SCALE ===== */
.md-display   { font-size: 2.8rem;  font-weight: 400; line-height: 1.15; letter-spacing: -.02em; }
.md-headline  { font-size: 2rem;    font-weight: 400; line-height: 1.2; }
.md-title-lg  { font-size: 1.375rem;font-weight: 500; line-height: 1.3; }
.md-title-md  { font-size: 1rem;    font-weight: 500; line-height: 1.4; }
.md-label-lg  { font-size: .875rem; font-weight: 500; letter-spacing: .006em; }
.md-body-lg   { font-size: 1rem;    font-weight: 400; line-height: 1.6; }
.md-body-md   { font-size: .875rem; font-weight: 400; line-height: 1.5; }
.display-font { font-family: 'Google Sans Display', Georgia, serif; }

/* ===== NAVIGATION — MD3 Top App Bar ===== */
.navbar {
    padding: 0;
    height: 64px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--elev-2);
    transition: background var(--dur-medium) var(--motion-standard);
}

.navbar-brand {
    padding: 0 1rem 0 .5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: opacity var(--dur-short) var(--motion-standard);
}
.navbar-brand:hover { opacity: .85; }

.brand-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* nav links */
.nav-link {
    font-size: .9rem;
    font-weight: 500;
    padding: .5rem .875rem !important;
    border-radius: var(--radius-pill);
    transition: background var(--dur-short) var(--motion-standard),
                color var(--dur-short) var(--motion-standard);
    position: relative;
}
.nav-link:hover  { background: rgba(255,255,255,.12) !important; }
.nav-link.active { background: rgba(255,255,255,.18) !important; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    padding: .5rem;
    margin-top: .5rem;
    box-shadow: var(--elev-3);
    background: var(--surface);
}
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: .625rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--on-surface);
    transition: background var(--dur-short) var(--motion-standard);
}
.dropdown-item:hover {
    background: var(--primary-container);
    color: var(--primary-color);
}

/* search bar in nav */
.nav-search .form-control {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-pill);
    color: white;
    font-size: .875rem;
    padding: .45rem 1.1rem;
    transition: background var(--dur-medium) var(--motion-standard);
}
.nav-search .form-control::placeholder { color: rgba(255,255,255,.6); }
.nav-search .form-control:focus {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.5);
    box-shadow: none;
    color: white;
}
.nav-search .btn {
    border-radius: var(--radius-pill);
    padding: .45rem .9rem;
    font-size: .85rem;
}

/* auth buttons */
.btn-nav-login {
    border: 1.5px solid rgba(255,255,255,.6);
    color: white;
    border-radius: var(--radius-pill);
    padding: .4rem 1.1rem;
    font-size: .85rem;
    font-weight: 500;
    transition: background var(--dur-short), border-color var(--dur-short);
}
.btn-nav-login:hover { background: rgba(255,255,255,.15); border-color: white; color: white; }

.btn-nav-signup {
    background: white;
    color: var(--primary-color);
    border-radius: var(--radius-pill);
    padding: .4rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    border: none;
    transition: box-shadow var(--dur-short);
}
.btn-nav-signup:hover { box-shadow: var(--elev-2); color: var(--primary-color); }

/* user avatar chip */
.user-chip {
    display: flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: var(--radius-pill);
    padding: .35rem .875rem .35rem .35rem;
    color: white;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--dur-short);
}
.user-chip:hover { background: rgba(255,255,255,.25); }
.user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}

/* ===== HERO — MD3 Large Hero with wave ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d47a1 100%);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 80px;
    background: var(--bg-color);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* hero chip */
.hero-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    padding: .45rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-family: 'Google Sans Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.hero-section .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.85);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* hero CTA buttons */
.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-pill);
    padding: .75rem 2rem;
    font-size: .95rem;
    font-weight: 700;
    box-shadow: var(--elev-2);
    transition: box-shadow var(--dur-medium) var(--motion-decel),
                transform var(--dur-medium) var(--motion-decel);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--elev-4);
    color: var(--primary-color);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,.7);
    border-radius: var(--radius-pill);
    padding: .75rem 2rem;
    font-size: .95rem;
    font-weight: 600;
    transition: background var(--dur-medium) var(--motion-decel);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); color: white; border-color: white; }

/* hero stats chips */
.hero-stats {
    display: flex; justify-content: center; gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}
.hero-stat-chip {
    display: flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    padding: .5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.hero-stat-chip i { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.75rem;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--on-surface);
    display: flex; align-items: center; gap: .625rem;
}
.section-title-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-container);
    color: var(--primary-color);
    font-size: 1rem;
}
.section-badge {
    background: var(--surface-variant);
    color: var(--on-surface-variant);
    padding: .3rem .875rem;
    border-radius: var(--radius-pill);
    font-size: .8rem;
    font-weight: 600;
}

/* ===== MD3 BLOG CARDS ===== */
.blog-card {
    border: 1px solid var(--outline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    background: var(--surface);
    transition: box-shadow var(--dur-medium) var(--motion-decel),
                border-color var(--dur-medium) var(--motion-decel),
                transform var(--dur-medium) var(--motion-decel);
    box-shadow: var(--elev-1);
}
.blog-card:hover {
    box-shadow: var(--elev-3);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.blog-card .card-img-wrap {
    overflow: hidden;
    position: relative;
}
.blog-card img {
    height: 210px;
    width: 100%;
    object-fit: cover;
    transition: transform var(--dur-long) var(--motion-decel);
}
.blog-card:hover img { transform: scale(1.06); }

/* category badge on card */
.category-badge {
    position: absolute;
    top: .875rem; left: .875rem;
    background: var(--primary-color);
    color: white;
    padding: .3rem .85rem;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: var(--elev-1);
    z-index: 2;
}

.blog-card .card-body {
    padding: 1.25rem 1.375rem 1.5rem;
    display: flex; flex-direction: column;
}

.blog-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: .625rem;
    color: var(--on-surface);
}
.blog-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-short);
}
.blog-card .card-title a:hover { color: var(--primary-color); }

.blog-card .card-text {
    color: var(--on-surface-variant);
    font-size: .875rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

/* meta row */
.blog-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .625rem;
    margin-bottom: 1.125rem;
}
.meta-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--surface-variant);
    color: var(--on-surface-variant);
    padding: .28rem .7rem;
    border-radius: var(--radius-pill);
    font-size: .775rem;
    font-weight: 500;
}
.meta-chip i { font-size: .75rem; }
.meta-chip.views {
    background: var(--primary-container);
    color: var(--primary-color);
}

/* read-more button */
.btn-read-more {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--primary-container);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-pill);
    padding: .5rem 1.25rem;
    font-size: .85rem;
    font-weight: 600;
    transition: background var(--dur-short) var(--motion-standard),
                box-shadow var(--dur-short);
    align-self: flex-start;
    text-decoration: none;
}
.btn-read-more:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--elev-2);
}
.btn-read-more i { transition: transform var(--dur-medium) var(--motion-decel); font-size: .75rem; }
.btn-read-more:hover i { transform: translateX(4px); }

/* ===== FEATURED / HERO CARD (first post large) ===== */
.blog-card-featured {
    border: 1px solid var(--outline);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--elev-2);
    transition: box-shadow var(--dur-medium) var(--motion-decel), transform var(--dur-medium);
}
.blog-card-featured:hover {
    box-shadow: var(--elev-4);
    transform: translateY(-4px);
}
.blog-card-featured .feat-img-wrap {
    position: relative; overflow: hidden;
}
.blog-card-featured img {
    width: 100%; height: 360px;
    object-fit: cover;
    transition: transform var(--dur-long) var(--motion-decel);
}
.blog-card-featured:hover img { transform: scale(1.04); }
.blog-card-featured .feat-body { padding: 2rem; }
.blog-card-featured .feat-title {
    font-family: 'Google Sans Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--on-surface);
    text-decoration: none;
    display: block;
    margin-bottom: .875rem;
    transition: color var(--dur-short);
}
.blog-card-featured .feat-title:hover { color: var(--primary-color); }
.blog-card-featured .feat-excerpt {
    color: var(--on-surface-variant);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* ===== DIVIDER label ===== */
.divider-label {
    display: flex; align-items: center; gap: 1rem;
    margin: 2rem 0 1.5rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.divider-label::before, .divider-label::after {
    content: ''; flex: 1;
    height: 1px; background: var(--outline);
}

/* ===== SIDEBAR — MD3 Outlined Cards ===== */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius-lg);
    padding: 1.375rem;
    margin-bottom: 1.25rem;
    transition: box-shadow var(--dur-medium) var(--motion-decel);
}
.sidebar-widget:hover { box-shadow: var(--elev-2); }

.sidebar-widget-title {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.125rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--outline);
}
.sidebar-widget-title i {
    width: 28px; height: 28px;
    border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-container);
    color: var(--primary-color);
    font-size: .8rem;
}

/* search inside sidebar */
.search-form .input-group { border-radius: var(--radius-pill); overflow: hidden; }
.search-form .form-control {
    border: 1.5px solid var(--outline);
    border-right: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding: .6rem 1.1rem;
    font-size: .875rem;
    background: var(--surface-variant);
}
.search-form .form-control:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: none;
}
.search-form .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    padding: .6rem 1rem;
    font-size: .875rem;
}

/* category list */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { margin-bottom: .5rem; }
.cat-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .55rem .875rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--on-surface);
    font-size: .875rem;
    font-weight: 500;
    background: var(--surface-variant);
    transition: background var(--dur-short), color var(--dur-short);
}
.cat-list a:hover {
    background: var(--primary-container);
    color: var(--primary-color);
}
.cat-list .cat-count {
    background: var(--outline);
    color: var(--on-surface-variant);
    padding: .15rem .6rem;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
}
.cat-list a:hover .cat-count {
    background: var(--primary-color);
    color: white;
}

/* popular/recent post rows */
.mini-post {
    display: flex; gap: .875rem; align-items: flex-start;
    padding: .625rem 0;
    border-bottom: 1px solid var(--outline-variant);
}
.mini-post:last-child { border-bottom: none; padding-bottom: 0; }
.mini-post-thumb {
    width: 64px; height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.mini-post-body { flex: 1; min-width: 0; }
.mini-post-title {
    font-size: .825rem;
    font-weight: 600;
    color: var(--on-surface);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    margin-bottom: .25rem;
    transition: color var(--dur-short);
}
.mini-post-title:hover { color: var(--primary-color); }
.mini-post-meta {
    font-size: .75rem;
    color: var(--on-surface-variant);
    display: flex; align-items: center; gap: .3rem;
}

/* ===== PAGINATION — MD3 ===== */
.pagination { gap: .375rem; }
.page-link {
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm) !important;
    padding: .5rem .875rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--on-surface);
    background: var(--surface);
    transition: background var(--dur-short), color var(--dur-short),
                box-shadow var(--dur-short), transform var(--dur-short);
}
.page-link:hover {
    background: var(--primary-container);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--elev-1);
}
.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--elev-2);
}
.page-item.disabled .page-link { opacity: .45; }

/* ===== FOOTER — MD3 ===== */
.site-footer {
    background: var(--footer-color);
    color: rgba(255,255,255,.87);
    margin-top: 4rem;
    padding-top: 4rem;
}
.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: .625rem;
}
.footer-desc { color: rgba(255,255,255,.6); font-size: .875rem; line-height: 1.6; }
.footer-heading {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.55);
    margin-bottom: 1rem;
}
.footer-link-list { list-style: none; padding: 0; margin: 0; }
.footer-link-list li { margin-bottom: .5rem; }
.footer-link-list a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .875rem;
    transition: color var(--dur-short), padding-left var(--dur-short);
    display: flex; align-items: center; gap: .5rem;
}
.footer-link-list a:hover { color: white; padding-left: 4px; }
.footer-link-list a i { font-size: .65rem; color: var(--primary-color); }

/* social icons */
.footer-socials { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    transition: background var(--dur-short), color var(--dur-short), transform var(--dur-short);
    text-decoration: none;
}
.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* footer mini post */
.footer-mini-post {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: .625rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-mini-post:last-child { border-bottom: none; }
.footer-mini-post img {
    width: 54px; height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0;
}
.footer-mini-post a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .825rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    transition: color var(--dur-short);
}
.footer-mini-post a:hover { color: white; }
.footer-mini-post small { color: rgba(255,255,255,.45); font-size: .75rem; }

/* bottom bar */
.footer-bottom {
    background: rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1rem 0;
    margin-top: 2.5rem;
}
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .8rem; margin: 0; }

/* ===== FORMS — MD3 Filled/Outlined ===== */
.form-control, .form-select {
    border: 1.5px solid var(--outline);
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    font-size: .9rem;
    background: var(--surface-variant);
    color: var(--on-surface);
    transition: border-color var(--dur-short), box-shadow var(--dur-short), background var(--dur-short);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(26,115,232,.18);
}
.form-label { font-size: .875rem; font-weight: 600; color: var(--on-surface); margin-bottom: .375rem; }

/* ===== MD3 BUTTONS ===== */
.btn {
    border-radius: var(--radius-pill);
    padding: .6rem 1.375rem;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: box-shadow var(--dur-medium) var(--motion-decel),
                transform var(--dur-medium) var(--motion-decel),
                background var(--dur-short);
    border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--elev-1);
}
.btn-primary:hover { background: #1557b0; box-shadow: var(--elev-3); color: white; }

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}
.btn-outline-primary:hover { background: var(--primary-container); }

.btn-tonal {
    background: var(--primary-container);
    color: var(--primary-color);
    border: none;
}
.btn-tonal:hover { background: var(--primary-color); color: white; box-shadow: var(--elev-2); }

/* ===== EMPTY STATE ===== */
.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--on-surface-variant);
}
.empty-state i { font-size: 3.5rem; color: var(--outline); margin-bottom: 1rem; }
.empty-state h5 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; color: var(--on-surface); }

/* ===== POST DETAIL ===== */
.post-content {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--elev-1);
}
.post-title {
    font-family: 'Google Sans Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--on-surface);
    margin-bottom: 1.25rem;
}
.post-meta {
    display: flex; flex-wrap: wrap; gap: .75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--outline);
    margin-bottom: 1.75rem;
}
.post-featured-image {
    width: 100%; height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--elev-2);
}
.post-body { font-size: 1rem; line-height: 1.85; color: #3c4043; }
.post-body h2 { font-size: 1.6rem; margin: 2rem 0 .875rem; }
.post-body h3 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
.post-body p  { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { padding-left: 1.75rem; margin-bottom: 1.25rem; }
.post-body li { margin-bottom: .5rem; }
.post-body img { max-width: 100%; border-radius: var(--radius-md); margin: 1.5rem 0; }
.post-body pre, .post-body code {
    background: var(--surface-dim);
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    font-size: .875rem;
}
.post-body pre { padding: 1.25rem; overflow-x: auto; }
.post-body code { padding: .15rem .4rem; }

/* ===== COMMENTS ===== */
.comments-section {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
}
.comment-item {
    padding: 1.125rem;
    background: var(--surface-variant);
    border-radius: var(--radius-md);
    margin-bottom: .875rem;
}
.comment-author { font-weight: 700; color: var(--on-surface); margin-bottom: .2rem; }
.comment-date { font-size: .8rem; color: var(--on-surface-variant); margin-bottom: .625rem; }
.comment-text { color: #3c4043; line-height: 1.6; font-size: .9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-section { padding: 3.5rem 0 5rem; }
    .sidebar { position: static; margin-top: 2rem; }
    .post-content { padding: 1.5rem; }
    .blog-card-featured img { height: 260px; }
}
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-stats { gap: .75rem; }
    .blog-card img { height: 190px; }
    .post-featured-image { height: 240px; }
    .blog-card-featured .feat-body { padding: 1.375rem; }
    .blog-card-featured .feat-title { font-size: 1.3rem; }
}

/* ===== UTILITY HELPERS ===== */
.hover-lift { transition: transform var(--dur-medium) var(--motion-decel); }
.hover-lift:hover { transform: translateY(-4px); }
.text-primary-md { color: var(--primary-color) !important; }
.bg-surface     { background: var(--surface) !important; }
.bg-surface-var { background: var(--surface-variant) !important; }
.rounded-md3    { border-radius: var(--radius-md) !important; }
.rounded-lg3    { border-radius: var(--radius-lg) !important; }
.rounded-xl3    { border-radius: var(--radius-xl) !important; }
.border-md3     { border: 1px solid var(--outline) !important; }
.shadow-md3-1   { box-shadow: var(--elev-1) !important; }
.shadow-md3-2   { box-shadow: var(--elev-2) !important; }
