/* IMPORT FONT ADELIA */
@font-face {
  font-family: 'Adelia';
  src: url('ADELIA.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --surface: #eef0f7;
  --border: #dde1ef;
  --blue: #2563eb;
  --blue-soft: #3b82f6;
  --blue-light: #eff6ff;
  --blue-mid: #dbeafe;
  --cyan: #0891b2;
  --text: #1e1e2e;
  --muted: #64748b;
  --nav-bg: rgba(255,255,255,0.92);
  --shadow: 0 2px 16px rgba(37,99,235,0.08);
  --shadow-md: 0 4px 24px rgba(37,99,235,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 100px;
  background-color: #f8faff;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  background: rgba(239, 246, 255, 0.7);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}

.pnc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-mid);
  border: 1px solid #bfdbfe;
  padding: 5px 16px;
  border-radius: 60px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

/* JUDUL PAKAI FONT ADELIA */
h1 {
  font-family: 'Adelia', 'Plus Jakarta Sans', cursive;
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: normal;
  color: var(--blue);
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(37, 99, 235, 0.45), 0 0 30px rgba(37, 99, 235, 0.2);
}

.tagline {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

/* RUNNING TEXT - TRANSPARAN + EFEK FADE PAKE MASK */
.running-text {
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-top: 16px;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.running-text marquee {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.running-text marquee i {
  margin: 0 6px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.2rem 1rem 80px;
}

.page { display: none; }
.page.active-page {
  display: block;
  animation: fadeUp 0.25s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.3rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.form-desc {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.input-field { 
  margin-bottom: 1rem; 
  position: relative;
}

label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 5px;
}

input[type="text"], textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}

textarea { min-height: 80px; }

.char-counter {
  text-align: right;
  font-size: 0.6rem;
  color: #94a3b8;
  margin-top: 4px;
}

.mood-grid { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
  margin-top: 5px; 
}

.mood-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.mood-chip:hover { 
  border-color: var(--blue-soft); 
  color: var(--blue); 
}

.mood-chip.selected {
  background: var(--blue-mid);
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}

.toggle-anon {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  margin-bottom: 10px;
  user-select: none;
  transition: border-color 0.2s;
}

.toggle-anon:hover { border-color: var(--blue-soft); }

.toggle-switch {
  width: 40px; 
  height: 22px;
  background: #cbd5e1;
  border-radius: 99px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.toggle-switch::before {
  content: '';
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-anon.on .toggle-switch { background: var(--blue); }
.toggle-anon.on .toggle-switch::before { transform: translateX(18px); }

.toggle-label { 
  font-size: 0.82rem; 
  color: var(--text); 
  font-weight: 500; 
}

.btn-submit {
  width: 100%;
  padding: 12px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.btn-submit:hover { 
  box-shadow: 0 6px 24px rgba(37,99,235,0.4); 
  transform: translateY(-1px); 
}

.btn-submit:active { transform: scale(0.97); }

/* Disabled button style */
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* HAPUS SEMUA EFEK BIRU DI TOMBOL */
.btn-submit:focus,
.btn-submit:focus-visible,
.btn-submit:focus-within,
.btn-submit:active,
button:focus,
button:focus-visible,
button:active {
  outline: none !important;
  outline-color: transparent !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.feed-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--blue-mid);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid #bfdbfe;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.post-card:hover { 
  box-shadow: var(--shadow-md); 
  transform: translateY(-1px); 
}

.badge-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}

.badge-song {
  background: #ecfeff;
  color: var(--cyan);
  border-color: #a5f3fc;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 5px;
}

.sender { 
  font-size: 0.68rem; 
  color: var(--muted); 
  font-weight: 500; 
}

.post-time { 
  font-size: 0.6rem; 
  color: #94a3b8; 
}

.message-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  margin: 8px 0;
}

.mood-tag {
  display: inline-block;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  margin-top: 4px;
}

.song-preview {
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.song-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.song-icon-wrap {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.song-title-text { 
  font-weight: 700; 
  font-size: 0.82rem; 
  color: var(--text); 
}

.song-artist-text { 
  font-size: 0.68rem; 
  color: var(--muted); 
  margin-top: 2px; 
}

.btn-play {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.btn-play i {
  font-size: 0.7rem;
}

.btn-play:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.btn-play:active { transform: scale(0.98); }

.reaction-row { 
  display: flex; 
  gap: 6px; 
  margin-top: 8px; 
  flex-wrap: wrap; 
}

.reaction {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.68rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.reaction:hover { 
  border-color: var(--blue-soft); 
  color: var(--blue); 
}

.reaction.reacted {
  background: var(--blue-mid);
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}

.comments-section {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.comment-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  transition: all 0.15s;
}

.comment-btn:hover {
  background: var(--surface);
  color: var(--blue);
}

.comment-list {
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.comment-item {
  background: var(--surface);
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  font-size: 0.6rem;
  color: var(--muted);
}

.comment-name {
  font-weight: 600;
  color: var(--blue);
}

.comment-text {
  font-size: 0.75rem;
  color: var(--text);
  word-break: break-word;
}

.comment-input-area {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.comment-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 0.7rem;
  font-family: 'Inter', sans-serif;
}

.comment-input:focus {
  outline: none;
  border-color: var(--blue);
}

.comment-submit {
  background: var(--blue);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.comment-submit:hover {
  background: var(--blue-soft);
  transform: scale(1.02);
}

.comment-submit i {
  font-size: 0.75rem;
}

.empty-feed {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

.empty-feed i { 
  font-size: 2rem; 
  opacity: 0.4; 
  margin-bottom: 10px; 
  display: block; 
}

.empty-feed p { 
  font-size: 0.8rem; 
  line-height: 1.5; 
}

.bottom-nav {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 360px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 5px 8px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.nav-item i { font-size: 1.1rem; }

.nav-item.active {
  background: var(--blue-mid);
  color: var(--blue);
  font-weight: 700;
}

.nav-item.active i { color: var(--blue); }

/* TOAST MESSAGE - GA KEPOTONG & BISA SCROLL */
.toast-message {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: white;
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 24px rgba(37,99,235,0.15);
  padding: 8px 20px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.toast-message::-webkit-scrollbar {
  height: 3px;
}

.toast-message::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.toast-message::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 10px;
}

.toast-message i {
  flex-shrink: 0;
}

.toast-message span {
  flex-shrink: 0;
}

.toast-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Modal Styles */
.song-search-item {
  transition: all 0.2s ease;
}

.song-search-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue) !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#searchSoundCloudBtn {
  transition: all 0.2s ease;
}

#searchSoundCloudBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

#searchSoundCloudBtn:active {
  transform: translateY(0);
}

/* HAPUS SEMUA OUTLINE BIRU DI SEMUA ELEMEN */
*:focus,
*:focus-visible,
*:focus-within,
*:active {
  outline: none !important;
  outline-color: transparent !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Khusus untuk tombol biar aman */
button:focus, button:active,
.btn-play:focus, .btn-play:active,
.reaction:focus, .reaction:active,
.nav-item:focus, .nav-item:active,
.btn-submit:focus, .btn-submit:active,
.music-icon:focus, .music-icon:active,
.toggle-anon:focus, .toggle-anon:active,
.mood-chip:focus, .mood-chip:active,
.comment-btn:focus, .comment-btn:active,
.comment-submit:focus, .comment-submit:active {
  outline: none !important;
  outline-color: transparent !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

@media (max-width: 480px) {
  .glass-card { padding: 1rem; }
  
  .nav-item span { display: none; }
  .nav-item { padding: 8px 0; min-width: 55px; }
  .nav-item i { font-size: 1.2rem; }
  
  .song-preview { 
    flex-direction: column; 
    align-items: stretch; 
  }
  
  .btn-play { 
    justify-content: center; 
    margin-top: 5px; 
  }
  
  .running-text marquee { font-size: 0.7rem; }
  
  .toast-message {
    max-width: 85vw;
    padding: 6px 14px;
    font-size: 0.7rem;
    bottom: 70px;
  }
}