/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #ffffff;
  color: #111111;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.app-container {
  width: 100%;
  max-width: 550px;
}

header {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status {
  font-size: 0.7rem;
  color: #777777;
  letter-spacing: 1px;
  margin-top: 2px;
}

.feed {
  display: block;
}

/* Layout Komoditas Utama: Kombinasi Kolom */
.tweet-box {
  display: table;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid #f2f2f2;
  animation: slideIn 0.35s ease-out;
}

/* Kolom Kiri: Foto Profil */
.avatar-area {
  display: table-cell;
  width: 48px;
  vertical-align: top;
  padding-right: 12px;
}

/* Kolom Kanan: Konten Teks */
.content-area {
  display: table-cell;
  vertical-align: top;
}

.tweet-header {
  margin-bottom: 4px;
  font-size: 0.825rem;
}

.author {
  font-weight: 700;
  color: #111111;
}

.timestamp {
  color: #888888;
  margin-left: 4px;
}

.tweet-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #252525;
  word-break: break-word;
  white-space: pre-wrap;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-pic {
  /* Gaya .profile-pic yang lama tetap sama, 
     kita hanya menghapus gaya teks yang tidak diperlukan */
  width: 40px;
  height: 40px;
  background-color: #111111; /* Tetap ada sebagai fallback jika gambar gagal dimuat */
  border-radius: 50%;
  overflow: hidden; /* Penting: memotong gambar agar tetap bulat */
}

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

/* Media Query Responsifitas Penyesuaian Ukuran di HP */
@media (max-width: 480px) {
  body {
    padding: 20px 12px;
  }
  .avatar-area {
    width: 44px;
    padding-right: 8px;
  }
  .profile-pic {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  .tweet-content {
    font-size: 0.9rem;
  }
}