/*
Theme Name: smaratlapak
Theme URI: https://smaratlapak.com
Author: smaratlapak
Description: Tema WordPress modern dengan dominasi warna putih dan ungu untuk blog review bisnis online dan produk digital. Responsif, cepat, dan SEO-friendly.
Version: 1.1.0
License: GPL v2 or later
Text Domain: smaratlapak
Tags: blog, two-columns, responsive-layout, custom-colors, featured-images
*/

:root{
  --rb-primary:#7C3AED;
  --rb-primary-dark:#6D28D9;
  --rb-primary-darker:#5B21B6;
  --rb-bg:#ffffff;
  --rb-text:#1f1b2e;
  --rb-muted:#6b6580;
  --rb-border:#ece9f5;
  --rb-soft:#faf8ff;
  --rb-shadow:0 6px 24px rgba(124,58,237,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:'Inter','Segoe UI',system-ui,sans-serif;color:var(--rb-text);background:var(--rb-bg);line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--rb-primary);text-decoration:none;transition:color .2s}
a:hover{color:var(--rb-primary-darker)}
h1,h2,h3,h4{font-family:'Poppins','Inter',sans-serif;color:var(--rb-text);line-height:1.25;margin:0 0 .6em}
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* HEADER */
.site-header{background:#fff;border-bottom:1px solid var(--rb-border);position:sticky;top:0;z-index:50;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px;gap:20px}
.site-branding{display:flex;align-items:center}
.site-branding a{display:flex;align-items:center;gap:10px;font-family:'Poppins',sans-serif;font-weight:700;font-size:22px;color:var(--rb-text);letter-spacing:-.3px}
.site-branding img{height:42px;width:auto;display:block}
.site-branding .brand-text{color:var(--rb-text)}
.site-branding .brand-text .accent{color:var(--rb-primary)}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:6px;flex-wrap:wrap}
.main-nav a{display:inline-block;padding:8px 14px;border-radius:8px;color:var(--rb-text);font-weight:500;font-size:14px}
.main-nav a:hover,.main-nav .current-menu-item>a{background:var(--rb-soft);color:var(--rb-primary)}
.menu-toggle{display:none;background:var(--rb-primary);color:#fff;border:0;border-radius:8px;padding:8px 12px;font-size:14px;cursor:pointer}

/* HERO - 2 columns */
.hero{background:linear-gradient(135deg,#faf8ff 0%,#f3eeff 100%);padding:60px 0;border-bottom:1px solid var(--rb-border)}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
@media(max-width:880px){.hero-grid{grid-template-columns:1fr;gap:32px}}
.hero-left h1{font-size:clamp(28px,3.4vw,40px);margin-bottom:16px;color:var(--rb-text);font-weight:700;line-height:1.2}
.hero-left h1 .hl{color:var(--rb-primary)}
.hero-left p{font-size:17px;color:var(--rb-muted);margin:0 0 22px}
.hero-cta{display:inline-flex;align-items:center;gap:8px;background:var(--rb-primary);color:#fff;padding:12px 22px;border-radius:10px;font-weight:600}
.hero-cta:hover{background:var(--rb-primary-darker);color:#fff}

.hero-feature{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 18px 40px -20px rgba(124,58,237,.35);border:1px solid var(--rb-border);display:block;transition:transform .25s}
.hero-feature:hover{transform:translateY(-3px)}
.hero-feature .thumb{aspect-ratio:16/10;background:var(--rb-soft);overflow:hidden}
.hero-feature .thumb img{width:100%;height:100%;object-fit:cover}
.hero-feature .body{padding:20px 24px 24px}
.hero-feature .label{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#fff;background:var(--rb-primary);padding:4px 10px;border-radius:999px;margin-bottom:10px}
.hero-feature h3{font-size:20px;margin:0 0 8px;color:var(--rb-text);line-height:1.35}
.hero-feature p{margin:0;color:var(--rb-muted);font-size:14px}

/* CATEGORY SECTIONS */
.cat-section{padding:50px 0 10px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap;gap:12px}
.section-title{font-size:24px;margin:0;display:flex;align-items:center;gap:12px}
.section-title .ico{display:inline-flex;width:40px;height:40px;border-radius:12px;background:var(--rb-soft);color:var(--rb-primary);align-items:center;justify-content:center}
.see-all{font-size:14px;font-weight:600;color:var(--rb-primary);padding:6px 14px;border:1px solid var(--rb-border);border-radius:999px}
.see-all:hover{background:var(--rb-soft)}

.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:900px){.posts-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.posts-grid{grid-template-columns:1fr}}

.post-card{background:#fff;border:1px solid var(--rb-border);border-radius:14px;overflow:hidden;transition:transform .25s,box-shadow .25s;display:flex;flex-direction:column}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--rb-shadow);border-color:#d9d2f1}
.post-thumb{aspect-ratio:16/9;overflow:hidden;background:var(--rb-soft);display:block}
.post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.post-card:hover .post-thumb img{transform:scale(1.05)}
.post-body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.post-cat{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:4px 10px;border-radius:999px;color:#fff;align-self:flex-start}
.post-card h3{font-size:17px;margin:0;line-height:1.35}
.post-card h3 a{color:var(--rb-text)}
.post-card h3 a:hover{color:var(--rb-primary)}
.post-excerpt{color:var(--rb-muted);font-size:13.5px;margin:0;flex:1}
.post-meta{font-size:12px;color:var(--rb-muted);display:flex;gap:10px;align-items:center;margin-top:4px}

/* CATEGORY PAGE */
.category-hero{background:linear-gradient(135deg,#faf8ff 0%,#ffffff 100%);padding:60px 0 40px;border-bottom:1px solid var(--rb-border)}
.cat-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;color:#fff;font-weight:600;font-size:13px;margin-bottom:14px}
.category-hero h1{font-size:36px;margin-bottom:10px}
.category-hero p{color:var(--rb-muted);max-width:720px;font-size:16px}

/* SINGLE POST WITH SIDEBAR */
.single-wrap{padding:40px 0 60px}
.single-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px;align-items:start}
@media(max-width:980px){.single-grid{grid-template-columns:1fr}}
.single-post .post-cat{margin-bottom:14px}
.single-post h1{font-size:34px;margin-bottom:14px}
.post-meta-single{color:var(--rb-muted);font-size:14px;margin-bottom:22px;display:flex;gap:14px;flex-wrap:wrap}
.featured-image{margin:0 0 26px;border-radius:14px;overflow:hidden;box-shadow:var(--rb-shadow)}
.entry-content{font-size:17px;line-height:1.8}
.entry-content h2{font-size:25px;margin-top:34px;color:var(--rb-primary-darker)}
.entry-content h3{font-size:20px;margin-top:26px}
.entry-content p{margin:0 0 18px}
.entry-content ul,.entry-content ol{padding-left:22px;margin:0 0 18px}
.entry-content li{margin-bottom:6px}
.entry-content blockquote{border-left:4px solid var(--rb-primary);background:var(--rb-soft);padding:14px 20px;margin:20px 0;border-radius:8px}
.entry-content img{border-radius:12px;margin:20px auto}

/* SIDEBAR */
.sidebar{position:sticky;top:90px;display:flex;flex-direction:column;gap:22px}
@media(max-width:980px){.sidebar{position:static}}
.widget{background:#fff;border:1px solid var(--rb-border);border-radius:14px;padding:18px 18px 20px}
.widget-title{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--rb-primary-darker);margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid var(--rb-soft)}
.widget-search form{display:flex;gap:8px}
.widget-search input[type=search]{flex:1;padding:10px 12px;border:1px solid var(--rb-border);border-radius:8px;font-size:14px;outline:none;font-family:inherit}
.widget-search input[type=search]:focus{border-color:var(--rb-primary)}
.widget-search button{background:var(--rb-primary);color:#fff;border:0;padding:0 16px;border-radius:8px;font-weight:600;cursor:pointer;font-size:14px}
.widget-search button:hover{background:var(--rb-primary-darker)}
.widget-list{list-style:none;margin:0;padding:0}
.widget-list li{padding:10px 0;border-bottom:1px dashed var(--rb-border);font-size:14px;line-height:1.45}
.widget-list li:last-child{border-bottom:0;padding-bottom:0}
.widget-list li:first-child{padding-top:0}
.widget-list a{color:var(--rb-text);font-weight:500}
.widget-list a:hover{color:var(--rb-primary)}
.widget-list .meta{display:block;font-size:11.5px;color:var(--rb-muted);margin-top:3px}
.widget-cats a{display:flex;align-items:center;justify-content:space-between;gap:10px}
.widget-cats .dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--rb-primary);margin-right:8px;flex-shrink:0}
.widget-banner{background:linear-gradient(135deg,#7C3AED 0%,#5B21B6 100%);color:#fff;border:0;text-align:center;padding:26px 20px}
.widget-banner h4{color:#fff;font-size:18px;margin:0 0 8px}
.widget-banner p{color:#e7defc;font-size:13.5px;margin:0 0 14px}
.widget-banner .btn{display:inline-block;background:#fff;color:var(--rb-primary-darker);font-weight:700;padding:9px 18px;border-radius:8px;font-size:13px}
.widget-banner .btn:hover{background:#f3eeff}

/* PAGINATION */
.pagination{display:flex;gap:8px;justify-content:center;margin:40px 0;flex-wrap:wrap}
.pagination .page-numbers{padding:8px 14px;border:1px solid var(--rb-border);border-radius:8px;color:var(--rb-text);font-weight:500}
.pagination .page-numbers.current,.pagination .page-numbers:hover{background:var(--rb-primary);color:#fff;border-color:var(--rb-primary)}

/* PAGE (about/contact) */
.page-wrap{padding:50px 0 60px}
.page-wrap .container{max-width:820px}
.page-wrap h1{font-size:34px;margin-bottom:18px}
.page-wrap .entry-content{font-size:17px;line-height:1.8}

/* FOOTER */
.site-footer{background:#1a1226;color:#cfc7e0;padding:50px 0 24px;margin-top:60px}
.site-footer a{color:#fff}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;margin-bottom:30px}
@media(max-width:700px){.footer-grid{grid-template-columns:1fr}}
.site-footer h4{color:#fff;font-size:16px;margin-bottom:14px}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer ul li{margin-bottom:8px;font-size:14px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:20px;text-align:center;font-size:13px;color:#9c93b3}

/* RESPONSIVE NAV */
@media(max-width:880px){
  .menu-toggle{display:block}
  .main-nav{display:none;width:100%;margin-top:14px}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:4px}
  .site-header .container{flex-wrap:wrap}
}
