/*
 * Widodo Kitchen – Custom Theme Stylesheet
 * Modern Japanese Color Palette
 * ─────────────────────────────────────────────
 * Background  Rice White   #FAF9F6
 * Primary     Matcha Green #A3B18A
 * Secondary   Stone Grey   #D6D3D1
 * Accent      Sakura Pink  #E7C6C0
 * Text        Ink Black    #2D2D2D
 * ─────────────────────────────────────────────
 */

/* ── CSS Custom Properties ────────────────────────────────────── */
:root {
    --wk-bg:        #FAF9F6;
    --wk-primary:   #A3B18A;
    --wk-secondary: #D6D3D1;
    --wk-accent:    #E7C6C0;
    --wk-text:      #2D2D2D;
    --wk-footer-bg: #2D2D2D;
    --wk-white:     #FFFFFF;
}

/* ── Global ───────────────────────────────────────────────────── */
body {
    color: var(--wk-text);
    background-color: var(--wk-bg);
}

/* ── Header ───────────────────────────────────────────────────── */
.header {
    background-color: var(--wk-bg) !important;
    border-bottom: 1px solid var(--wk-secondary);
}
.header.stuck {
    background-color: var(--wk-bg) !important;
}
.inner-nav > ul > li > a:hover,
.inner-nav > ul > li.active > a {
    color: var(--wk-primary) !important;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-base,
.btn-base:visited {
    background-color: var(--wk-primary);
    border-color: var(--wk-primary);
    color: var(--wk-bg);
}
.btn-base:hover,
.btn-base:focus {
    background-color: #8FA37A;
    border-color: #8FA37A;
    color: var(--wk-white);
}
.btn-link.btn-base {
    background: transparent;
    border: none;
    color: var(--wk-primary);
    padding-left: 0;
}
.btn-link.btn-base:hover {
    color: #8FA37A;
    background: transparent;
}
.btn-outline.btn-dark:hover {
    background-color: var(--wk-primary);
    border-color: var(--wk-primary);
}

/* ── Section Backgrounds ──────────────────────────────────────── */
.bg-white-dark {
    background-color: #F0EDE8 !important; /* warm off-white — distinguishes from card white */
}

/* ── Module Headers ───────────────────────────────────────────── */
.module-header .divider-line::after,
p.lead.divider-line::after {
    background-color: var(--wk-primary);
}

/* ── Post / Card Styles ───────────────────────────────────────── */
.post {
    border: 1px solid var(--wk-secondary);
    border-radius: 4px;
    overflow: hidden;
}
/* Ensure article-columns (pantry) gets same inner padding as post-columns (homepage) */
.article-columns .post .post-content {
    padding: 30px 25px;
}
.article-columns .post .post-content > *:last-child {
    margin-bottom: 0;
}
.post-title a {
    color: var(--wk-text);
}
.post-title a:hover {
    color: var(--wk-primary);
}
.post-meta li,
.post-meta a {
    color: #888;
}
.post-meta a:hover {
    color: var(--wk-primary);
}

/* ── Tags ─────────────────────────────────────────────────────── */
.tags a {
    color: var(--wk-text);
    background: var(--wk-secondary);
    border: none;
}
.tags a:hover,
.tags a.active {
    background: var(--wk-primary);
    color: var(--wk-white) !important;
}

/* ── Social list — horizontal row ────────────────────────────── */
.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.social-list li a {
    color: var(--wk-primary);
    font-size: 1.2rem;
    transition: color 0.2s;
}
.social-list li a:hover {
    color: var(--wk-white);
}

/* ── Sidebar Search Input-Group ──────────────────────────────── */
.sidebar .input-group .form-control,
.sidebar .input-group .btn {
    height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}
.sidebar .input-group .btn-base,
.input-group-btn .btn-base,
.input-group-btn .btn-base:visited {
    background-color: var(--wk-primary) !important;
    border-color: var(--wk-primary) !important;
    color: var(--wk-white) !important;
}
.input-group-btn .btn-base:hover,
.input-group-btn .btn-base:focus {
    background-color: #8FA37A !important;
    border-color: #8FA37A !important;
    color: var(--wk-white) !important;
}

/* ── Sidebar Widgets ──────────────────────────────────────────── */
.sidebar .widget {
    margin-bottom: 30px;
}
.sidebar .footer-links a {
    color: var(--wk-text);
    transition: color 0.2s;
}
.sidebar .footer-links a:hover {
    color: var(--wk-primary);
}
/* Active filter pill — same treatment as .tags a.active for consistency */
.sidebar .footer-links a.active {
    color: var(--wk-primary);
    font-weight: 700;
    border-left: 3px solid var(--wk-primary);
    padding-left: 6px;
}

/* ── Pagination ───────────────────────────────────────────────── */
.pagination > li > a,
.pagination > li > span {
    color: var(--wk-primary);
    border-color: var(--wk-secondary);
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover {
    background-color: var(--wk-primary);
    border-color: var(--wk-primary);
    color: var(--wk-white);
}
.pagination > li > a:hover {
    background-color: var(--wk-accent);
    border-color: var(--wk-accent);
    color: var(--wk-text);
}

/* ── Quote / Testimonial ──────────────────────────────────────── */
.bg-brand-alfa-60 {
    background-color: rgba(163, 177, 138, 0.65) !important; /* Matcha transparent */
}
.slider-testimonial .owl-dot.active span {
    background: var(--wk-white) !important;
}
.testimonial {
    font-size: 1.7rem;
    font-style: italic;
    line-height: 1.85;
    margin-bottom: 28px;
}
.cd-author-info h5 {
    font-size: 1.3rem !important;
    margin-bottom: 6px !important;
    font-weight: 700;
}
.cd-author-info p,
.cd-author-info span {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
    background-color: var(--wk-footer-bg);
    color: var(--wk-bg);
}
.footer .widget p,
.footer .widget h6,
.footer .copyright p {
    color: var(--wk-bg);
}
.footer-links a {
    color: var(--wk-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--wk-white);
}
.footer .widget-posts-title a {
    color: var(--wk-bg);
}
.footer .widget-posts-title a:hover {
    color: var(--wk-primary);
}
.footer .widget-posts-meta {
    color: var(--wk-secondary);
}

/* Footer bottom-line: suppress the large pseudo-element margins, use compact version */
.footer .bottom-line::before {
    display: none;
}
.footer .bottom-line::after {
    margin: 8px 0 16px 0;
    border-bottom-color: var(--wk-primary);
}

.scroll-top {
    color: var(--wk-primary);
}
.scroll-top:hover {
    color: var(--wk-white);
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb > li + li::before {
    color: rgba(255,255,255,0.6);
}

/* ── Recipe Meta Bar ──────────────────────────────────────────── */
.recipe-meta-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    background: #F0EDE8;
    border: 1px solid var(--wk-secondary);
    border-radius: 4px;
    padding: 18px 24px;
    margin-bottom: 30px;
}
.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.recipe-meta-item i {
    color: var(--wk-primary);
    font-size: 1.4rem;
}
.recipe-section-title {
    border-bottom: 2px solid var(--wk-primary);
}
.ingredients-list li::before {
    color: var(--wk-primary);
}

/* ── Recipe Meta Labels ───────────────────────────────────────── */
.recipe-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    display: block;
}
/* ── Sticky footer: keep footer at viewport bottom on short pages ─────── */
html {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
.wrapper > .footer {
    margin-top: auto;   /* pushes footer down when content is short */
}
