/* ============================================================
   Jetpack Likes – DEFAULT FALLBACK STYLE
   Versi ringkas & aman untuk tampilan Like Button Jetpack
   ============================================================ */

/* Wrapper utama */
.jetpack-likes-widget-wrapper {
  margin-top: 20px;
  text-align: left;
  position: relative;
}

/* Placeholder ketika likes belum dimuat */
.jetpack-likes-widget-unloaded {
  background: #f3f3f3;
  padding: 10px;
  border-radius: 6px;
  color: #777;
  font-size: 14px;
  text-align: center;
}

/* Container tombol like */
.jetpack-likes-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Tombol Like */
.jetpack-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #dddddd;
  transition: 0.2s;
}

.jetpack-like:hover {
  border-color: #0073aa;
  background: #f0faff;
}

/* Ikon ♥ */
.jetpack-like .like-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #ff3b3b;
  mask: url('data:image/svg+xml;utf8,<svg fill="white" width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 17s-6.6-4.7-9-8.5C-2.1 4.2-.1 0 3.5 0 5.9 0 7.7 1.7 8.5 3.1 9.3 1.7 11.1 0 13.5 0 17.1 0 19.1 4.2 19 8.5 16.6 12.3 10 17 10 17z"/></svg>')
       center / contain no-repeat;
}

/* Jumlah Like */
.jetpack-like .like-count {
  font-size: 14px;
  color: #444;
}

/* Ketika sudah like */
.jetpack-like.liked {
  background: #ff3b3b;
  border-color: #d92e2e;
  color: white;
}

.jetpack-like.liked .like-icon {
  background: white;
}

/* Floating container dari Jetpack (iframe wrapper) */
#jetpack-likes-widget-wrapper iframe {
  width: 100%;
  border: 0;
  overflow: hidden;
}

/* Loading spinner */
.jetpack-likes-widget .like-loading {
  width: 16px;
  height: 16px;
  border: 2px solid #cccccc;
  border-top-color: #0073aa;
  border-radius: 50%;
  animation: jetpack-like-spin 1s linear infinite;
}

@keyframes jetpack-like-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
