/*
Theme Name: UAN Personal Profile & Tulisan
Theme URI: https://example.com/
Author: Generated by ChatGPT
Author URI: https://example.com/
Description: Tema WordPress ringan untuk profil personal + daftar tulisan (cocok untuk Ustadz/Penulis/Pembicara). Ada hero profil, list tulisan terbaru, dan panel kontak. Mobile-first.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uan-personal
Tags: blog, one-column, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root{
  --bg:#f4f6fb;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e6e9f2;
  --accent:#1f4ed8;      /* biru */
  --accent-2:#f4b400;    /* kuning */
  --shadow: 0 10px 30px rgba(2,6,23,.10);
  --radius: 18px;
  --radius-sm: 14px;
  --container: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 600px at 30% 0%, #eef3ff, var(--bg));
  color:var(--text);
  line-height:1.55;
}

a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(var(--container), calc(100% - 32px));
  margin-inline:auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(244,246,251,.7);
  border-bottom:1px solid rgba(230,233,242,.8);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--text);
  text-decoration:none;
}
.brand:hover{ text-decoration:none; }
.brand .dot{ color:var(--accent); }
.custom-logo{ height:34px; width:auto; display:block; }
.site-title{ font-size:20px; margin:0; }

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav a{
  color:var(--text);
  font-weight:600;
  font-size:15px;
  padding:8px 10px;
  border-radius:12px;
}
.nav a:hover{ background:rgba(31,78,216,.08); text-decoration:none; }

.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  box-shadow: 0 4px 16px rgba(2,6,23,.06);
}
.menu-toggle svg{ display:block; }

/* HERO */
.hero{
  padding:28px 0 10px;
}
.hero-card{
  display:grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.85));
  border:1px solid rgba(230,233,242,.9);
  border-radius: calc(var(--radius) + 6px);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.hero-media{
  position:relative;
  min-height:260px;
  background:
    radial-gradient(500px 260px at 30% 20%, rgba(31,78,216,.18), transparent 60%),
    radial-gradient(400px 220px at 70% 60%, rgba(244,180,0,.18), transparent 60%),
    linear-gradient(180deg, #ffffff, #f7f9ff);
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero-media .fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  text-align:center;
  color:rgba(15,23,42,.75);
  font-weight:700;
}

.hero-body{
  padding:26px 26px 22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero-kicker{
  font-size:18px;
  color:var(--muted);
  margin:0 0 4px;
}
.hero-title{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.18;
  letter-spacing:-.4px;
}
.hero-title strong{ color:var(--accent); }
.hero-sub{
  margin:0 0 14px;
  color:var(--muted);
  font-size:16px;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 16px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:13px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.7);
  color:var(--text);
}
.chip.primary{
  background:rgba(31,78,216,.10);
  border-color:rgba(31,78,216,.25);
  color:var(--accent);
}
.chip.gold{
  background:rgba(244,180,0,.18);
  border-color:rgba(244,180,0,.35);
  color:#9a6b00;
}

.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:2px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none !important;
  user-select:none;
}
.btn.primary{
  background:linear-gradient(180deg, #2b5cff, var(--accent));
  color:white;
  box-shadow: 0 10px 26px rgba(31,78,216,.28);
}
.btn.primary:hover{ filter:brightness(1.04); }
.btn.ghost{
  background:rgba(255,255,255,.75);
  border-color:var(--line);
  color:var(--text);
}
.btn.ghost:hover{ background:rgba(255,255,255,.95); }

/* SECTIONS */
.section{
  padding:18px 0 8px;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:22px 0 10px;
}
.section-head h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.2px;
}
.muted{ color:var(--muted); }
.rule{
  height:3px;
  width:74px;
  background:linear-gradient(90deg, var(--accent-2), rgba(244,180,0,.1));
  border-radius:999px;
  margin-top:8px;
}

/* POSTS GRID */
.posts-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin:14px 0 8px;
}
.card{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(230,233,242,.95);
  border-radius:var(--radius);
  box-shadow: 0 8px 20px rgba(2,6,23,.06);
  overflow:hidden;
}
.post-card a{ color:inherit; text-decoration:none; }
.post-thumb{
  position:relative;
  width:100%;
  aspect-ratio: 16/10;
  background:
    radial-gradient(240px 180px at 25% 35%, rgba(31,78,216,.22), transparent 62%),
    radial-gradient(220px 160px at 70% 70%, rgba(244,180,0,.18), transparent 62%),
    linear-gradient(180deg, #fff, #f2f6ff);
  border-bottom:1px solid rgba(230,233,242,.9);
}
.post-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.post-thumb .ph{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  text-align:center;
  color:rgba(15,23,42,.7);
  font-weight:800;
  letter-spacing:.2px;
}
.post-body{
  padding:14px 14px 16px;
}
.post-title{
  margin:0 0 6px;
  font-size:17px;
  line-height:1.35;
  letter-spacing:-.1px;
}
.post-meta{
  font-size:13px;
  color:var(--muted);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.post-excerpt{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
}
.post-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.65);
  color:var(--text);
}
.tag.blue{ background:rgba(31,78,216,.10); border-color:rgba(31,78,216,.2); color:var(--accent); }
.tag.gold{ background:rgba(244,180,0,.16); border-color:rgba(244,180,0,.3); color:#9a6b00; }

/* CONTACT */
.contact-card{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
  padding:14px;
}
.contact-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:rgba(255,255,255,.75);
  text-decoration:none !important;
  color:var(--text);
}
.contact-item:hover{ background:rgba(255,255,255,.95); }
.contact-item .icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  border:1px solid rgba(230,233,242,.9);
  background:linear-gradient(180deg, #fff, #f6f8ff);
}
.contact-item .label{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.contact-item .label strong{
  font-size:14px;
  line-height:1.2;
}
.contact-item .label span{
  font-size:13px;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* SINGLE */
.article{
  padding:20px 0 10px;
}
.article .header{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(230,233,242,.95);
  border-radius: calc(var(--radius) + 6px);
  box-shadow:var(--shadow);
  padding:18px 18px 14px;
}
.article h1{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.2;
  letter-spacing:-.4px;
}
.article .meta{
  color:var(--muted);
  font-size:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.prose{
  margin-top:16px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(230,233,242,.95);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  padding:18px;
}
.prose img{ max-width:100%; height:auto; border-radius:14px; }
.prose h2{ margin-top:22px; }
.prose a{ text-decoration:underline; }

.footer{
  padding:26px 0 36px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

/* MOBILE */
@media (max-width: 860px){
  .hero-card{ grid-template-columns: 1fr; }
  .hero-title{ font-size:30px; }
  .posts-grid{ grid-template-columns: 1fr; }
  .contact-card{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .menu-toggle{ display:inline-flex; }
  .nav.is-open{
    display:flex;
    position:absolute;
    top:64px;
    right:16px;
    left:16px;
    flex-direction:column;
    gap:6px;
    padding:10px;
    border-radius:16px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.95);
    box-shadow: var(--shadow);
  }
}
