/* ========== KOMPONEN: Sentence of the Day Widget — RES-01 ========== */

/* Widget container */
.sod-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}
.sod-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--indigo-ghost), transparent 60%);
  pointer-events: none;
}

.sod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.sod-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--gold-ghost);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-full);
  padding: 2px 10px;
}
.sod-tts-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-ghost);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition:
    color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.sod-tts-btn:hover {
  color: var(--indigo-light);
  background: var(--indigo-ghost);
}

.sod-jp {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--text);
  line-height: 1.8;
  word-break: break-all;
}
.sod-jp ruby {
  ruby-align: center;
}
.sod-jp rt {
  font-size: 0.45em;
  color: var(--text-faint);
}

.sod-furigana {
  font-size: var(--fs-xs);
  line-height: 1.6;
  display: none; /* Tersembunyi — furigana sudah di ruby */
}

.sod-translation {
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.6;
  padding: var(--space-2) var(--space-3);
  background: var(--ink-3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--indigo-dim);
}

.sod-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.sod-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--ink-4);
  border: 1px solid var(--border);
  color: var(--text-ghost);
}
.sod-tag--grammar {
  color: var(--amethyst-light);
  background: var(--amethyst-dim);
  border-color: var(--amethyst);
}

.sod-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-3);
}
