/* assets/css/blog.css
   Theme: Cibl Blog
   Yellow header/footer with black rounded border; soft yellow page bg;
   Cards with black border; parallax hero; responsive grid; scroll animations.
*/

:root{
  --yellow-strong:#ffcc00;
  --yellow-soft:#fff8d6;
  --black:#000;
  --muted:#222;
  --accent:#00c8ff;
  --bg:#fff9e6;
  --card-bg:#fffef6;
  --card-border: #000;
  --container-width: 1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(180deg,var(--bg), #fffef6);
  color:var(--muted);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* container */
.container{
  width:95%;
  max-width:var(--container-width);
  margin:0 auto;
}

/* HEADER */
.site-header{
  background:var(--yellow-strong);
  border:3px solid var(--black);
  border-radius:18px;
  margin:18px auto;
  padding:10px 0;
  position:sticky;
  top:12px;
  z-index:50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.header-inner{
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:space-between;
}
.header-left{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo-box{width:64px;height:64px;border-radius:50%;overflow:hidden;border:3px solid var(--black);display:flex;align-items:center;justify-content:center;background:#fff}
.logo{width:90%;height:auto;display:block}
.title-box{line-height:1}
.project-name{font-weight:800;font-size:20px;color:#000}
.project-name .symbol{font-weight:700;color:#0b0b0b}
.subtitle{font-size:12px;color:#111}

/* nav */
.header-nav{display:flex;gap:10px;align-items:center}
.header-nav a{
  background:transparent;border:2px solid var(--black);padding:8px 12px;border-radius:10px;color:#000;text-decoration:none;font-weight:600;
}
.header-nav a.active{background:#000;color:#fff}
.btn.small{background:#000;color:#fff;border:2px solid var(--black);padding:8px 10px;border-radius:10px;cursor:pointer}

/* price box */
.price-box{border:2px solid var(--black);padding:10px 14px;border-radius:10px;text-align:center;background: #fffbe6;}
.price-label{font-size:12px;color:#111}
.price-value{font-weight:800;font-size:18px;color:#000}
.price-change{font-weight:700;padding:4px 8px;border-radius:8px;margin-top:6px;display:inline-block}

/* HERO */
.hero{position:relative;overflow:hidden;margin:24px auto;border-radius:16px;border:2px solid var(--black)}
.hero-bg{
  position:absolute;left:0;top:0;right:0;bottom:0;
  background:linear-gradient(135deg, rgba(0,200,255,0.08), rgba(255,204,0,0.06));
  transform:translateZ(0);
  will-change:transform;
}
.hero-inner{position:relative;padding:60px 30px;z-index:2}
.hero h1{margin:0;font-size:36px;color:#001227}
.hero .lead{margin-top:12px;color:#14333c;font-size:16px}

/* MAIN GRID: blog list + sidebar */
.main-grid{display:grid;grid-template-columns: 1fr 360px;gap:28px;margin:28px auto;align-items:start}
@media (max-width:1000px){.main-grid{grid-template-columns:1fr 320px}}
@media (max-width:820px){.main-grid{grid-template-columns:1fr;padding-bottom:30px} .sidebar{order:2} .blog-list{order:1}}

/* section title */
.section-title{font-size:22px;margin:6px 0 18px;color:#001}

/* posts grid */
.posts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}

/* card */
.post-card{
  background:var(--card-bg);
  border-radius:14px;
  overflow:hidden;
  border:2px solid var(--card-border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display:flex;flex-direction:column;
  min-height: 220px;
  transition: transform .28s ease, box-shadow .28s ease;
}
.post-card:hover{transform:translateY(-8px);box-shadow:0 18px 40px rgba(0,0,0,0.16)}
.post-card .media{width:100%;height:190px;display:block;overflow:hidden;background:#eee;border-bottom:1px solid rgba(0,0,0,0.04)}
.post-card .media img.lazy{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transform:scale(1.02)}
.post-card .media img.lazy.loaded{opacity:1;transform:scale(1);transition:opacity .7s ease, transform .7s ease}

.post-card .video-wrap{width:100%;height:190px;display:block}
.video-badge{position:absolute;margin:12px 12px;background:var(--accent);color:#000;padding:6px 10px;border-radius:8px;font-weight:800;z-index:6;box-shadow:0 6px 14px rgba(0,0,0,0.15)}

.post-body{padding:16px}
.post-title{font-size:18px;margin:0 0 8px;color:#001}
.post-excerpt{font-size:14px;line-height:1.55;color:#222;margin:0 0 10px}
.post-meta{font-size:12px;color:#666}

/* sidebar widgets */
.sidebar .card{background:var(--card-bg);border:2px solid var(--card-border);padding:14px;border-radius:12px;margin-bottom:16px}
.widget-title{font-weight:700;margin:0 0 10px;color:#001}
.list-links{list-style:none;padding:0;margin:0}
.list-links li{margin:8px 0}
.list-links a{color:#005; text-decoration:none;font-weight:600}
.pill{display:inline-block;background:#ffefcc;border:2px solid var(--black);padding:8px 10px;border-radius:999px;margin:6px;font-weight:700}
.tags .tag{display:inline-block;margin:6px 6px 0 0;padding:8px 10px;border:2px solid var(--black);border-radius:8px;background:#fff;color:#000;font-weight:700}
.social-row a.social{display:inline-block;margin:6px 6px 0 0;padding:8px 10px;border-radius:8px;border:2px solid var(--black);background:#00c8ff;color:#000;text-decoration:none;font-weight:700}

/* footer */
.site-footer{
  background:var(--yellow-strong);
  border:3px solid var(--black);
  border-radius:16px;
  margin:22px auto;padding:22px 10px;color:#000;
}
.footer-inner{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.site-footer .col{flex:1;min-width:200px}
.logo-footer img{width:56px;height:56px;border-radius:50%;border:3px solid var(--black)}
.foot-links{list-style:none;padding:0;margin:0}
.foot-links li{margin:8px 0}
.foot-links a{color:#000;text-decoration:none;font-weight:700}
.muted{color:#000;opacity:.9}

/* copyright */
copyright, .copyright{font-size:13px;text-align:center;padding:12px 0;color:#000}

/* small screens tweaks */
@media (max-width:720px){
  .header-inner{flex-direction:column;gap:10px;align-items:stretch}
  .header-nav{flex-wrap:wrap;justify-content:center}
  .price-box{align-self:center}
  .logo{width:80%}
  .hero h1{font-size:24px}
  .post-card .media{height:180px}
}

/* subtle scroll animation helper (JS toggles .in-view) */
.post-card.in-view{transform:translateY(0) scale(1);box-shadow:0 18px 40px rgba(0,0,0,0.12)}
.post-card.fade-in{opacity:0;transform:translateY(12px)}
.post-card.fade-in.in-view{opacity:1;transform:translateY(0);transition:all .6s cubic-bezier(.2,.9,.3,1)}

/* small helpers */
.btn{cursor:pointer}