/**
 * Lunafitch Themes - main stylesheet.
 * Memakai CSS variables yang di-output dynamic-css.php (#25, #11, #1).
 */

/* ---------- Base ---------- */
:root{
	--lf-primary:#0b5fff;--lf-secondary:#0a2540;--lf-accent:#ff5a1f;
	--lf-text:#16202b;--lf-muted:#5b6b7b;--lf-border:#e3e8ef;--lf-bg:#fff;
	--lf-surface:#f6f8fb;--lf-link:#0b5fff;--lf-link-hover:#0a2540;
	--lf-header-bg:#fff;--lf-header-text:#16202b;--lf-footer-bg:#0a2540;--lf-footer-text:#fff;
	--lf-menu-text:#16202b;--lf-button:#0b5fff;--lf-button-text:#fff;
	--lf-font-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
	--lf-font-heading:Georgia,"Times New Roman",serif;--lf-font-menu:inherit;
	--lf-font-size-base:16px;--lf-header-pad-top:20px;--lf-header-pad-bottom:20px;--lf-logo-size:48px;
	--lf-container:1200px;--lf-gap:1.5rem;
}
body{line-height:1.65;color:var(--lf-text);background:var(--lf-bg);}
img{max-width:100%;height:auto;}
a{text-decoration:none;}
a:hover,a:focus{text-decoration:underline;}
h1,h2,h3,h4,h5,h6{line-height:1.25;margin:0 0 .5em;}
p{margin:0 0 1rem;}

/* ---------- Layout ---------- */
.container{width:100%;max-width:var(--lf-container);margin:0 auto;padding-left:1rem;padding-right:1rem;}
.site-boxed #page{max-width:1280px;margin:0 auto;background:var(--lf-bg);box-shadow:0 0 40px rgba(0,0,0,.06);}
.site-content{display:flex;gap:2rem;align-items:flex-start;padding-top:2rem;padding-bottom:2rem;}
.content-area{flex:1 1 auto;min-width:0;}
.site-sidebar{flex:0 0 320px;width:320px;}
.sidebar-left .site-content{flex-direction:row-reverse;}
.no-sidebar .site-content,.sidebar-none .site-content{display:block;}
.no-sidebar .content-area{max-width:100%;}

/* ---------- Header (#1, #23) ---------- */
.site-header{padding-top:var(--lf-header-pad-top);padding-bottom:var(--lf-header-pad-bottom);background:var(--lf-header-bg);color:var(--lf-header-text);border-bottom:1px solid var(--lf-border);}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;}
.site-title{font-family:var(--lf-font-heading);font-size:1.75rem;margin:0;}
.site-title a{color:var(--lf-header-text);}
.site-description{color:var(--lf-muted);font-size:.85rem;margin:0;}
.custom-logo{max-height:var(--lf-logo-size);width:auto;}
.header-layout-header-2 .site-header__inner{flex-direction:column;text-align:center;}
.header-layout-header-2 .main-navigation{width:100%;justify-content:center;}
.header-layout-header-4 .header-widgets,.header-layout-header-4 .header-search{display:none;}

/* Sticky (#23) */
.has-sticky-header.is-sticky .site-header{position:fixed;top:0;left:0;right:0;z-index:999;animation:lfSlideDown .3s ease;box-shadow:0 2px 12px rgba(0,0,0,.08);}
.has-sticky-header.is-sticky{padding-top:80px;}
@keyframes lfSlideDown{from{transform:translateY(-100%);}to{transform:translateY(0);}}

/* ---------- Navigation ---------- */
.main-navigation{font-family:var(--lf-font-menu);}
.main-navigation ul{list-style:none;margin:0;padding:0;display:flex;gap:1.25rem;flex-wrap:wrap;}
.main-navigation a{color:var(--lf-menu-text);font-weight:600;}
.main-navigation .sub-menu{position:absolute;background:var(--lf-bg);border:1px solid var(--lf-border);min-width:200px;flex-direction:column;gap:0;padding:.5rem 0;display:none;z-index:50;box-shadow:0 8px 24px rgba(0,0,0,.1);}
.main-navigation li{position:relative;}
.main-navigation li:hover>.sub-menu{display:flex;}
.main-navigation .sub-menu a{display:block;padding:.4rem 1rem;}
.menu-toggle{display:none;background:transparent;border:1px solid var(--lf-border);border-radius:6px;padding:.5rem .7rem;cursor:pointer;}
.menu-toggle-icon,.menu-toggle-icon::before,.menu-toggle-icon::after{display:block;width:22px;height:2px;background:var(--lf-text);position:relative;}
.menu-toggle-icon::before,.menu-toggle-icon::after{content:"";position:absolute;}
.menu-toggle-icon::before{top:-7px;}.menu-toggle-icon::after{top:7px;}

/* ---------- Entries / Listing (#3) ---------- */
.entry{margin-bottom:2rem;}
.entry-title{font-family:var(--lf-font-heading);}
.entry-title a{color:var(--lf-secondary);}
.entry-meta,.entry-footer{color:var(--lf-muted);font-size:.85rem;}
.entry-cat a{color:var(--lf-primary);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em;}
.post-thumbnail img,.entry-thumb img{border-radius:8px;display:block;}

.listing--grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;}
.listing--grid .entry{margin-bottom:0;}
.listing--list .entry--list{display:flex;gap:1rem;align-items:flex-start;}
.listing--list .entry-thumb{flex:0 0 120px;}
.listing--card{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;}
.listing--card .entry--card{background:var(--lf-surface);border:1px solid var(--lf-border);border-radius:10px;overflow:hidden;margin-bottom:0;}
.listing--card .entry-wrap{padding:1.25rem;}

/* ---------- Read more / buttons ---------- */
.button,button,input[type="submit"],.read-more,.search-submit{background:var(--lf-button);color:var(--lf-button-text);border:0;border-radius:6px;padding:.6rem 1.1rem;cursor:pointer;display:inline-block;font-weight:600;}
.read-more:hover{text-decoration:none;opacity:.9;}

/* ---------- Sponsored badge (#4) ---------- */
.lunafitch-sponsored-badge{display:inline-block;background:var(--lf-accent);color:#fff;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.15rem .5rem;border-radius:4px;margin-bottom:.4rem;}

/* ---------- Banner (#2) CLS-safe ---------- */
.lunafitch-banner{margin:1.5rem 0;text-align:center;}
.lunafitch-banner__inner{min-height:90px;display:flex;align-items:center;justify-content:center;background:var(--lf-surface);border-radius:6px;overflow:hidden;}
.lunafitch-banner--in_post{margin:2rem 0;}
.lunafitch-banner img{display:inline-block;}

/* ---------- Authored posts (#5) ---------- */
.lunafitch-authored-posts{background:var(--lf-surface);border-left:4px solid var(--lf-primary);padding:1rem 1.25rem;margin:1.5rem 0;border-radius:0 8px 8px 0;}
.lunafitch-authored-posts .authored-title{font-size:1rem;margin-bottom:.5rem;}
.lunafitch-authored-posts ul{margin:0;padding-left:1.1rem;}

/* ---------- Author box ---------- */
.lunafitch-author-box{display:flex;gap:1rem;background:var(--lf-surface);padding:1.25rem;border-radius:10px;margin:1.5rem 0;align-items:flex-start;}
.lunafitch-author-box .author-avatar img{border-radius:50%;}
.lunafitch-author-box .author-name{font-weight:700;font-size:1.05rem;display:block;}

/* ---------- Related ---------- */
.lunafitch-related{margin:2.5rem 0;}
.related-title{border-bottom:2px solid var(--lf-primary);padding-bottom:.5rem;}

/* ---------- Widgets ---------- */
.widget{margin-bottom:2rem;}
.widget-title{font-family:var(--lf-font-heading);font-size:1.15rem;border-bottom:2px solid var(--lf-primary);padding-bottom:.4rem;margin-bottom:1rem;}
.lunafitch-widget-posts{list-style:none;margin:0;padding:0;}
.widget-post-item{display:flex;gap:.75rem;padding:.6rem 0;border-bottom:1px solid var(--lf-border);}
.lunafitch-widget-posts.style-list .widget-post-item{display:block;}
.widget-post-thumb img{border-radius:6px;width:80px;}
.widget-post-title{font-weight:600;color:var(--lf-secondary);display:block;}
.widget-post-date{font-size:.78rem;color:var(--lf-muted);}
.lunafitch-cat-colored{list-style:none;margin:0;padding:0;}
.lunafitch-cat-colored li{border-bottom:1px solid var(--lf-border);}
.lunafitch-cat-colored a{display:flex;justify-content:space-between;padding:.45rem 0;}
.lunafitch-cat-colored .cat-count{background:var(--lf-primary);color:#fff;border-radius:10px;padding:0 .5rem;font-size:.75rem;}

/* Tabs widget (#10) */
.lunafitch-tabs .tabs-nav{list-style:none;display:flex;margin:0 0 1rem;padding:0;gap:.25rem;}
.lunafitch-tabs .tabs-nav button{background:var(--lf-surface);color:var(--lf-text);border:1px solid var(--lf-border);padding:.4rem .75rem;font-size:.85rem;}
.lunafitch-tabs .tabs-nav button.is-active{background:var(--lf-primary);color:#fff;}
.lunafitch-tabs .tab-panel{display:none;}
.lunafitch-tabs .tab-panel.is-active{display:block;}

/* Instagram grid (#30 fallback) */
.lunafitch-instagram-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;}
.lunafitch-instagram-grid img{border-radius:4px;aspect-ratio:1/1;object-fit:cover;width:100%;}

/* Social (#27) */
.lunafitch-social{list-style:none;display:flex;gap:.5rem;margin:0;padding:0;flex-wrap:wrap;}
.lunafitch-social a{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;background:var(--lf-surface);border-radius:50%;color:var(--lf-text);}
.lunafitch-social a:hover{background:var(--lf-primary);color:#fff;}
.social-icon::before{content:"\1F517";}
.social-facebook .social-icon::before{content:"f";font-weight:700;}
.social-instagram .social-icon::before{content:"\1F4F7";}

/* ---------- Widgetized columns (#24) ---------- */
.widget-area.columns-1 .container,.widget-area.columns-1{display:block;}
.footer-widgets.columns-2 .container,.upper-widgets.columns-2 .container,.home-widgets.columns-2{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;}
.footer-widgets.columns-3 .container,.upper-widgets.columns-3 .container,.home-widgets.columns-3{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;}
.footer-widgets.columns-4 .container,.upper-widgets.columns-4 .container,.home-widgets.columns-4{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;}

/* ---------- Footer ---------- */
.site-footer{background:var(--lf-footer-bg);color:var(--lf-footer-text);margin-top:3rem;}
.footer-widgets{padding:3rem 0 1rem;}
.site-footer .widget-title{color:#fff;border-color:rgba(255,255,255,.3);}
.site-footer a{color:#fff;}
.site-info{padding:1.5rem 0;border-top:1px solid rgba(255,255,255,.15);display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;}
.footer-menu{list-style:none;display:flex;gap:1rem;margin:0;padding:0;}

/* ---------- Breadcrumb (#31) ---------- */
.lunafitch-breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0;padding:0;font-size:.85rem;color:var(--lf-muted);}
.lunafitch-breadcrumb li::after{content:"/";margin-left:.4rem;color:var(--lf-border);}
.lunafitch-breadcrumb li:last-child::after{content:"";}

/* ---------- Pagination ---------- */
.pagination,.comments-pagination{margin:2rem 0;}
.pagination .page-numbers{padding:.4rem .75rem;border:1px solid var(--lf-border);border-radius:6px;margin-right:.25rem;}
.pagination .current{background:var(--lf-primary);color:#fff;border-color:var(--lf-primary);}

/* ---------- Format icons (#22) ---------- */
.has-format-icon{position:relative;}
.format-icon{position:absolute;top:.75rem;left:.75rem;width:36px;height:36px;background:rgba(0,0,0,.6);border-radius:50%;z-index:2;}
.format-icon--video::after{content:"\25B6";color:#fff;display:flex;align-items:center;justify-content:center;height:100%;}
.format-icon--gallery::after{content:"\1F5BC";color:#fff;display:flex;align-items:center;justify-content:center;height:100%;}
.entry--aside{background:var(--lf-surface);border-radius:10px;padding:1.5rem;}
.entry--link{background:var(--lf-primary);border-radius:10px;padding:1.5rem;}
.entry--link .entry-title a{color:#fff;}

/* ---------- Back to top ---------- */
.back-to-top{position:fixed;bottom:1.5rem;right:1.5rem;width:44px;height:44px;border-radius:50%;opacity:0;visibility:hidden;transition:opacity .2s;z-index:998;}
.back-to-top.is-visible{opacity:1;visibility:visible;}

/* ---------- Comments ---------- */
.comment-list{list-style:none;margin:0;padding:0;}
.comment-list ol.children{list-style:none;padding-left:2rem;}
.comments-area{margin-top:2.5rem;}

/* ---------- Forms ---------- */
input,textarea,select{font-family:inherit;font-size:1rem;}
.search-form{display:flex;gap:.4rem;}
.search-field{flex:1;padding:.5rem .75rem;border:1px solid var(--lf-border);border-radius:6px;}
