/* ============================================================
   935500 STUDIO — MINIMALIST LANDING PAGE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-hover: #f0f0f2;
  --border: #e5e5e8;
  --border-strong: #d4d4d8;
  --text: #171717;
  --text-muted: #737373;
  --text-dim: #a3a3a3;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-text: #4f46e5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #141416;
    --surface-hover: #1c1c1f;
    --border: #262629;
    --border-strong: #3a3a3f;
    --text: #fafafa;
    --text-muted: #a3a3a8;
    --text-dim: #52525b;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: #1e1b4b;
    --accent-text: #a5b4fc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* ─── Layout ─── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

/* ─── Profile ─── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Rata kiri */
  margin-bottom: 32px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px; /* Jarak antara logo dan judul */
  margin-bottom: 12px;
}

.avatar {
  width: 40px;  /* Logo diperkecil */
  height: 40px; /* Logo diperkecil */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 100%;
  margin: 0 0 14px 0;
  line-height: 1.6;
  text-align: left;
}

.tagline strong {
  color: var(--text);
  font-weight: 600;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.text-btn:hover {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.dot {
  color: var(--text-dim);
  user-select: none;
}

/* ─── Search ─── */
.search-section {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.search-section input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-section input::placeholder {
  color: var(--text-dim);
}

.search-section input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-section button {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.search-section button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

#searchBtn {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

#searchBtn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ─── Donation Links ─── */
.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.link-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.link-btn .arrow {
  color: var(--text-dim);
  transition: color 0.15s, transform 0.15s;
}

.link-btn:hover .arrow {
  color: var(--text-muted);
  transform: translateX(2px);
}

/* ─── Results / Cards ─── */
.results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  margin-bottom: 24px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: left;
  gap: 6px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-music:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 0 24px;
}

.pagination button {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.pagination button:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#pageInfo {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 90px;
  text-align: center;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ─── Modal ─── */
.overlay-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInOverlay 0.2s ease;
}

.overlay-modal.hidden { display: none; }

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overlay-content {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s ease;
}

@media (prefers-color-scheme: dark) {
  .overlay-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
  font-family: inherit;
}

.overlay-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

#overlayBody {
  padding: 28px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#overlayBody::-webkit-scrollbar { width: 6px; }
#overlayBody::-webkit-scrollbar-track { background: transparent; }
#overlayBody::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

#overlayBody h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

#overlayBody h2 svg {
  color: var(--accent-text);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#overlayBody p { margin: 10px 0; }
#overlayBody strong { color: var(--text); font-weight: 600; }

#overlayBody a {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 500;
}

#overlayBody a:hover { text-decoration: underline; }

#overlayBody .faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

#overlayBody .faq-item:first-of-type { padding-top: 0; }
#overlayBody .faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#overlayBody .faq-item strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

#overlayBody .faq-item span {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

#overlayBody .icon-svg {
  width: 18px;
  height: 18px;
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
  .container { padding: 32px 16px 24px; }
  .profile h1 { font-size: 19px; }
  .tagline { font-size: 13px; }
  .avatar { width: 64px; height: 64px; }

  .card {
    flex-direction: column;
    align-items: stretch;
  }
  .card h3 {
    white-space: normal;
  }
  .card-actions {
    justify-content: left-end;
  }

  .search-section { flex-wrap: wrap; }
  .search-section input { flex: 1 0 100%; }
  .search-section button { flex: 1; }

  #overlayBody { padding: 24px 20px; }
  .overlay-content { max-height: 85vh; }
}