:root {
  --bg: #f0f2f5;
  --card: #fff;
  --accent: #1877f2;
  --muted: #6b7280;
  --header-bg: #fff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, Arial;
  background: var(--bg);
  margin: 0;
  color: #111;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo-small {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.site-title {
  font-size: 16px;
  font-weight: 600;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 4px;
  margin-top: 12px;
}

.carousel-card {
  min-width: 140px;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.albums-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.album-card {
  width: 160px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-cover {
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee, #f5f5f5);
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post img {
  width: 100%;
  height: auto;
  display: block;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

.fab-btn[hidden] {
  display: none !important;
}

/* ================================================================
== BLOK CSS BARU YANG SUDAH DIREVISI DAN DIGABUNGKAN ==
================================================================
*/
.post {
  background: var(--card);
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.post-header {
  padding: 8px 12px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-content {
  padding: 8px 12px 12px 12px;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}

.share-group {
  display: flex;
  gap: 12px;
}

.post-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.post-actions svg {
  width: 24px;
  height: 24px;
  stroke: #262626;
  stroke-width: 1.5;
  fill: none;
}

.like-btn.liked svg {
  fill: red;
  stroke: red;
}

.like-count {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #111;
}

.caption-text {
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.caption-text strong {
  margin-right: 5px;
}

/* Styling untuk tombol admin (edit/hapus) */
.admin-controls {
  display: flex;
  gap: 8px; /* Jarak antar ikon */
  margin-top: 12px; /* Jarak dari teks caption di atasnya */
}

/* Menghilangkan gaya default tombol agar terlihat seperti ikon */
.admin-controls button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #6c757d; /* Warna ikon yang soft */
}

.admin-controls button:hover {
  color: #212529; /* Warna ikon menjadi lebih gelap saat disentuh mouse */
}

.admin-controls svg {
  width: 18px; /* Ukuran ikon */
  height: 18px;
  stroke: currentColor; /* Mengambil warna dari parent (.admin-controls button) */
}

/* --- GANTI BAGIAN .albums-row --- */
.albums-row {
  display: grid;
  grid-template-rows: repeat(2, 1fr); /* Membuat 2 baris */
  grid-auto-flow: column;
  grid-auto-columns: 160px; /* Lebar setiap kartu album */
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.album-card {
  scroll-snap-align: start;
  width: 100%;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- TAMBAHKAN CSS BARU DI BAWAH --- */

/* Floating Action Button (+) */
.fab-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  border: none;
  z-index: 1000;
  transition: transform 0.2s;
}

.fab-btn:hover {
  transform: scale(1.05);
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-content h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.modal-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}
