/*
Theme Name: Dhika vCard
Author: Dhika Madhani
Version: 3.0 Final
*/
* { margin:0; padding:0; box-sizing:border-box; }
img { max-width:100%; height:auto; }
body {
  font-family: 'Georgia', serif;
  background: #EDE6DA;
  background-image: radial-gradient(#d9cdb8 1px, transparent 1px);
  background-size: 22px 22px;
  min-height:100vh; display:flex; flex-direction:column; align-items:center;
  padding:20px; color:#2B2118;
}
.vcard-wrap { width:100%; max-width:820px; margin:0 auto; }
.vcard {
  background:#FFFDF8; border-radius:28px; padding:48px 40px 36px;
  text-align:center; box-shadow:0 25px 60px rgba(0,0,0,0.12); width:100%; overflow:hidden;
}

/* YANG BARU - ANTI KEPOTONG */
.vcard img.avatar {
  width:150px; height:150px;
  object-fit:cover; object-position: top center;
  border-radius:50%;
  border:5px solid #FFFDF8;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  margin-top:0;
  display:block; margin-left:auto; margin-right:auto;
}
.vcard .download-btn {
  display:inline-block; margin-top:22px;
  background:#2B2118; color:white !important;
  padding:13px 34px; border-radius:999px;
  text-decoration:none; font-size:16px;
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
  transition:.2s;
}
.vcard .download-btn:hover { background:#5C3D2E; transform:translateY(-2px); }
@media(max-width:480px){
  .vcard img.avatar{ width:120px; height:120px; }
}

.vcard h1 { font-size:52px; font-weight:400; margin-top:18px; letter-spacing:-1px; line-height:1.1; }
.vcard .roles { font-size:20px; color:#6B5B4D; margin-top:8px; }
.vcard hr { border:none; height:1px; background:linear-gradient(to right, transparent, #D9C8A8, transparent); margin:24px auto; width:70%; }
.vcard .bio { font-size:18px; line-height:1.6; color:#4A3F34; max-width:600px; margin:0 auto; }
.vcard .cats { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:26px; }
.vcard .cats a { text-decoration:none; color:#5C3D2E; background:#F2E9D8; border:1.5px solid #8C6D4F; padding:11px 32px; border-radius:999px; font-size:17px; transition:.2s; }
.vcard .cats a:hover { background:#5C3D2E; color:white; transform:translateY(-2px); }

/* HIGHLIGHT BESAR */
.highlight-card { display:block; position:relative; border-radius:20px; overflow:hidden; text-decoration:none; color:white; margin-bottom:24px; aspect-ratio:16/9; background:#2B2118; }
.highlight-card img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s ease, filter .4s ease; }
.highlight-card .highlight-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15) 50%, transparent); display:flex; flex-direction:column; justify-content:flex-end; padding:24px; }
.highlight-card .highlight-btn { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(0.85); background:white; color:#2B2118; padding:12px 26px; border-radius:999px; font-size:16px; font-weight:bold; white-space:nowrap; opacity:0; transition:all .35s ease; box-shadow:0 10px 25px rgba(0,0,0,0.3); }

/* LIST KECIL + HOVER GAMBAR + KATA */
.vcard .latest { margin-top:10px; text-align:left; }
.list-item { display:flex; gap:16px; align-items:center; text-decoration:none; color:#2B2118; padding:14px 12px; border-bottom:1px solid #EEE5D3; border-radius:14px; transition:all .3s ease; position:relative; }
.list-item:hover { background:#F2E9D8; padding-left:18px; }
.list-thumb { width:64px; height:64px; border-radius:12px; overflow:hidden; flex-shrink:0; background:#EDE6DA; }
.list-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.list-item:hover .list-thumb img { transform:scale(1.15); }
.list-text { flex:1; min-width:0; }
.list-text .title { font-size:17px; line-height:1.3; }
.list-text .meta { font-size:14px; color:#999; margin-top:3px; }
.list-preview-card { position:absolute; right:70px; top:50%; transform:translateY(-50%) scale(0.92) translateX(10px); width:300px; background:white; border-radius:18px; box-shadow:0 20px 45px rgba(0,0,0,0.22); overflow:hidden; padding:0 0 16px; opacity:0; pointer-events:none; transition:all .35s ease; z-index:20; border:1px solid #EEE5D3; text-align:left; }
.list-preview-card img { width:100%; height:150px; object-fit:cover; display:block; }
.list-preview-card .p-title { font-size:18px; font-weight:bold; padding:14px 16px 0; line-height:1.3; }
.list-preview-card .p-excerpt { font-size:14.5px; line-height:1.6; color:#5A4D3F; padding:8px 16px 0; font-style:italic; }
.list-preview-card .p-btn { display:inline-block; margin:12px 0 0 16px; background:#F2E9D8; border:1px solid #D9C8A8; padding:7px 14px; border-radius:99px; font-size:13px; color:#2B2118; }

/* HOVER LAPTOP */
@media (hover:hover) {
  .highlight-card:hover img { transform:scale(1.07); filter:brightness(0.75); }
  .highlight-card:hover .highlight-btn { opacity:1; transform:translate(-50%,-50%) scale(1); }
  .list-item:hover .list-preview-card { opacity:1; transform:translateY(-50%) scale(1) translateX(0); }
}
/* HP */
@media (hover:none) { .highlight-card .highlight-btn { opacity:1; transform:translate(-50%,-50%) scale(1); position:absolute; bottom:88px; top:auto; } }
@media (max-width:768px) {
  body{padding:12px;} .vcard{padding:36px 24px 28px; border-radius:22px;} .vcard h1{font-size:40px;} .vcard .bio{font-size:16px;}
  .highlight-card{aspect-ratio:16/10;} .list-preview-card{display:none;}
  .list-text .mobile-excerpt{display:block; font-size:13.5px; color:#6B5B4D; font-style:italic; margin-top:4px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
}
@media (min-width:769px){ .list-text .mobile-excerpt{display:none;} }
@media (max-width:480px) {
  .vcard{padding:28px 16px 24px; border-radius:18px;} .vcard img.avatar{width:110px; height:110px; margin-top:-80px;} .vcard h1{font-size:32px;} .vcard .roles{font-size:16px;}
  .vcard .cats{flex-direction:column;} .vcard .cats a{width:100%; text-align:center;}
  .highlight-card{aspect-ratio:4/3; border-radius:16px;} .highlight-card .highlight-overlay{padding:16px;} .highlight-card .highlight-overlay h2{font-size:22px !important;}
  .highlight-card .highlight-btn{padding:10px 20px; font-size:14px; bottom:76px;}
  .list-item{font-size:15px;} .list-thumb{width:56px; height:56px;}
}
/* === FIX FINAL - TEMPEL DI PALING BAWAH === */
.vcard img.avatar{
  margin-top:0 !important;
  margin-bottom:0 !important;
  width:150px !important; height:150px !important;
  object-fit:cover !important; object-position:top center !important;
  display:block !important; margin-left:auto !important; margin-right:auto !important;
}
.vcard .download-btn{
  display:inline-block !important; margin-top:22px !important;
  background:#2B2118 !important; color:white !important;
  padding:13px 34px !important; border-radius:999px !important;
  text-decoration:none !important; font-size:16px !important;
}
@media(max-width:480px){
  .vcard img.avatar{ width:120px !important; height:120px !important; margin-top:0 !important; }
  .vcard .download-btn{ width:100% !important; text-align:center !important; }
}

/* === TOMBOL DOWNLOAD MELAYANG - SESUAI KONSEP === */
.save-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 999 !important;
  margin: 0 !important;
  text-align: right !important;
}
.save-btn a, .download-btn-float {
  display: inline-flex !important;
  align-items: center; gap: 8px;
  background: #2B2118 !important;
  color: white !important;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: bold;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28) !important;
  border: none !important;
  animation: float-bounce 3s ease-in-out infinite;
}
/* Biar tombolnya kayak ngambang naik-turun dikit */
@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
/* Hilangin tombol lama yang di dalam kartu biar gak dobel */
.vcard .download-btn { display: none !important; }

/* Di HP: full di bawah, tengah */
@media(max-width:600px){
  .save-btn {
    left: 16px !important; right: 16px !important; bottom: 16px !important;
    text-align: center !important;
  }
  .save-btn a { width: 100% !important; justify-content: center !important; animation: none; }
}

/* === PALET 3: NAVY ELEGAN - PROFESIONAL === */
body {
  background-color: #E6E9EF !important;
  background-image: radial-gradient(#CBD2DE 1px, transparent 1px) !important;
  color: #1A2332 !important;
}
.vcard {
  background: #FFFFFF !important;
  box-shadow: 0 25px 60px rgba(26,35,50,0.14) !important;
}
.vcard h1, .vcard .latest a, .list-item, .list-text .title,
.list-preview-card .p-title, .highlight-card .highlight-btn {
  color: #1A2332 !important;
}
.vcard .roles, .vcard .bio, .list-text .meta,
.list-preview-card .p-excerpt {
  color: #5A6B84 !important;
}
.vcard hr {
  background: linear-gradient(to right, transparent, #CBD2DE, transparent) !important;
}

/* Tombol Kategori: Dosen / Penyair / Blog */
.vcard .cats a {
  background: #E2E8F0 !important;
  border-color: #1A2332 !important;
  color: #1A2332 !important;
}
.vcard .cats a:hover {
  background: #1A2332 !important;
  color: white !important;
}

/* Tombol Melayang */
.save-btn a, .download-btn-float {
  background: #1A2332 !important;
  color: white !important;
  box-shadow: 0 12px 30px rgba(26,35,50,0.35) !important;
}

/* List Tulisan */
.list-item { border-bottom-color: #E8ECF1 !important; }
.list-item:hover { background: #EEF1F5 !important; }
.list-thumb { background: #E6E9EF !important; }
.list-preview-card { border-color: #E8ECF1 !important; }
.list-preview-card .p-btn {
  background: #E2E8F0 !important;
  border-color: #CBD2DE !important;
  color: #1A2332 !important;
}

/* Highlight Besar di Halaman Kategori */
.highlight-card { background: #1A2332 !important; }
.highlight-card .highlight-overlay h2 { color: white !important; }
.highlight-card .highlight-btn { background: white !important; color: #1A2332 !important; }

/* Judul Kecil "TERBARU / TULISAN LAINNYA" */
.vcard .latest h3 {
  color: #1A2332 !important;
}

/* Link Kembali */
.vcard-wrap a[href*="Kembali"], .vcard a { color: #1A2332 !important; }

/* Avatar Biar Nyatu Sama Navy */
.vcard img.avatar {
  border-color: #FFFFFF !important;
  box-shadow: 0 10px 25px rgba(26,35,50,0.20) !important;
}

/* Di HP */
@media(max-width:600px){
  .save-btn a { background: #1A2332 !important; }
}

/* === KOMENTAR - NYATU SAMA TEMPLATE === */
.sbrnysl-comments {
  background: #FFFEFA !important;
  border: 1px solid #EFE9DC !important;
  border-radius: 20px !important;
  padding: 30px 30px 10px 30px !important;
  margin-top: 30px !important;
  font-family: Georgia, serif !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.sbrnysl-comments-head { text-align: center; margin-bottom: 24px; }
.sbrnysl-comments-head h3 { font-size: 22px; color: #1a1a1a; margin: 10px 0 4px; }
.sbrnysl-comments-head p { font-size: 14px; color: #8A8375; font-style: italic; }
.sbrnysl-comments-line { display: block; width: 50px; height: 3px; background: #E67E22; border-radius: 10px; margin: 0 auto; }

/* LIST KOMENTAR */
.comment-list { list-style: none !important; padding: 0 !important; margin: 0 0 20px 0 !important; }
.comment-list li { border-bottom: 1px dashed #E8DDC9 !important; padding: 16px 0 !important; }
.comment-list li:last-child { border-bottom: none !important; }
.comment-author { font-weight: bold; color: #1a1a1a; font-size: 15px; }
.comment-author img { border-radius: 50% !important; float: left; margin-right: 12px; width: 40px; height: 40px; object-fit: cover; }
.comment-meta { font-size: 12px; color: #A39E93; }
.comment-meta a { color: #A39E93 !important; }
.comment-content { margin-top: 8px; clear: both; font-size: 15px; line-height: 1.7; text-align: left !important; }

/* FORM */
.sbrnysl-comments #respond { margin-top: 20px; }
.sbrnysl-comments #reply-title { font-size: 20px; margin-bottom: 16px; display: block; color: #1a1a1a; }
.sbrnysl-comments label { font-size: 13px; font-weight: bold; color: #555; display: block; margin-bottom: 6px; }
.sbrnysl-comments textarea,
.sbrnysl-comments input[type="text"],
.sbrnysl-comments input[type="email"] {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1.5px solid #E8DDC9 !important;
  border-radius: 12px !important;
  background: #fff !important;
  font-family: Georgia, serif !important;
  font-size: 15px !important;
  box-sizing: border-box !important;
  outline: none !important;
}
.sbrnysl-comments textarea:focus,
.sbrnysl-comments input:focus { border-color: #E67E22 !important; box-shadow: 0 0 0 3px rgba(230,126,34,0.12); }
.sbrnysl-comments #submit {
  background: #1a1a1a !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  font-weight: bold !important;
  font-size: 14px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
}
.sbrnysl-comments #submit:hover { background: #E67E22 !important; }

@media (max-width: 600px) {
  .sbrnysl-comments { padding: 20px 16px 5px 16px !important; }
}