* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* FULL HEIGHT LAYOUT */
html, body {
  height: 100%;
}

body {
  background: #0f1115;
  color: #eaeaea;
  padding: 0;
}

/* APP WRAPPER (kunci utama) */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #222;
}

.header h2 {
  font-size: 20px;
  font-weight: 600;
}

.header p {
  font-size: 12px;
  color: #9aa0a6;
}

/* CONTENT (dorong footer ke bawah) */
.content {
  flex: 1;
}

/* ITEM */
.item {
  display: flex;
  align-items: center;
  padding: 14px 16px; /* sedikit lebih lega */
  border-bottom: 1px solid #1a1a1a;
}

/* ICON */
.material-icons {
  font-size: 28px;
  margin-right: 12px;
}

.folder {
  color: #f4b400;
}

.file {
  color: #cfcfcf;
}

/* INFO */
.info {
  flex: 1;
}

.name {
  font-size: 15px;
  line-height: 1.2;
}

.meta {
  font-size: 12px;
  color: #9aa0a6;
  margin-top: 2px;
}

/* DATE */
.date {
  font-size: 12px;
  color: #9aa0a6;
}

/* FOOTER (clean, auto bottom) */
.footer {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: #9aa0a6;
  border-top: 1px solid #1a1a1a;
}
/* Item jadi link tapi tetap seperti div */
.item.link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* Efek klik (biar terasa seperti app) */
.item.link:hover {
  background-color: #1a1a1a;
}

.facebook-icon {
  font-size: 28px;
  margin-right: 12px;
  color: #1877f2; /* warna Facebook */
}
.whatsapp-icon {
  font-size: 28px;
  margin-right: 0px;
  color: #25d366; /* hijau WhatsApp */
}
.discord-icon {
  font-size: 28px;
  margin-right: 0px;
  color: #5865f2; /* warna khas Discord */
}
.icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  border-radius: 50%;
  background: #1a1a1a;
  position: relative; /* WAJIB untuk badge */
}

.icon i {
  font-size: 20px;
  display: block;
}

/* Facebook (sudah cukup center) */
.fa-facebook {
  color: #1877f2;
}

/* WhatsApp agak naik */
.fa-whatsapp {
  color: #25d366;
  transform: translateY(1px);
}

/* Discord biasanya terlalu bawah */
.fa-discord {
  color: #5865f2;
  transform: translateY(-1px);
}

/* Reddit agak kecil → dibesarkan sedikit */
.fa-reddit {
  color: #ff4500;
  transform: scale(1.1);
}
/* header layout jadi flex */
.header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #222;
}

/* tombol back */
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 50%;
  text-decoration: none;
  color: #eaeaea;
  flex-shrink: 0; /* biar tidak gepeng */
}

/* icon */
.back-btn .material-icons {
  font-size: 22px;
}

/* efek hover / klik */
.back-btn:hover {
  background: #1a1a1a;
}
/* icon folder atas */
.folder-up {
  font-size: 32px;
  margin-right: 12px;
  color: #f4b400;
}

/* biar beda dikit */
.item.link:first-child {
  opacity: 0.9;
}

.icon .material-icons {
  font-size: 30px;
  color: #f4b400;
  line-height: 1;
}
.badge {
  position: absolute;
  top: -3px;
  right: 7px;
  background: #ff3b30;   /* merah */
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 4px;
  line-height: 1;
  box-shadow: 0 0 0 2px #0f1115; /* biar ada border gelap */
}
/* Wrapper utama */
.app {
  max-width: 420px;
  margin: 20px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #1a1a1a;
}
/* GRID VIEW */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 16px;
}



/* ITEM FILE */
.file {
  text-align: center;
  text-decoration: none;
  color: #eaeaea;
  text-align: center;
}

.file img {
  width: 150px;
  height: 170px;
  margin-bottom: 6px;
  object-fit: contain;   /* ini kunci */
  border-radius: 12px;
  transition: 0.2s;
}
.file:hover img {
  transform: scale(1.05);
}

.file-name {
  font-size: 13px;
  margin-top: 6px;
  color: #ccc;
  word-break: break-word;
  
}

/* folder up */
.folder-up {
  font-size: 64px;
  color: #f4b400;
}