/* Birth list page */
.birthlist-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 16px 60px;
  text-align: center;
}

.birthlist-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.birthlist-back:hover {
  color: var(--text);
}

/* Section header */
.birthlist-section-header {
  margin-top: 32px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 2rem;
  color: var(--yellow-dark);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Separator */
.birthlist-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
}

.sep-line {
  flex: 1;
  height: 1px;
}

.sep-star {
  font-size: 1.1rem;
}

/* Card grid — 2 columns */
.birthlist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}

/* Card */
.birthlist-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--yellow-light);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.15s, box-shadow 0.2s;
  animation: cardFadeIn 0.4s ease both;
}

/* Bought state */
.birthlist-card.bought {
  opacity: 0.55;
  pointer-events: none;
}

.birthlist-card.bought img,
.birthlist-card.bought .card-placeholder {
  filter: grayscale(0.6);
}

.badge-bought {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--success);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.birthlist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px var(--shadow);
}

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

.birthlist-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.card-placeholder span {
  font-size: 2rem;
}

.card-placeholder small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.birthlist-card-body {
  padding: 10px 12px 12px;
}

.birthlist-card-body h3 {
  font-family: 'Amatic SC', cursive;
  font-size: 1.4rem;
  color: var(--yellow-dark);
  line-height: 1.2;
  margin-bottom: 2px;
}

.birthlist-card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.card-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--text);
}

/* Add idea button */
.btn-add-idea {
  margin-bottom: 16px;
  font-size: 0.95rem;
  padding: 10px 24px;
}

/* Empty state */
.birthlist-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 24px 0;
}

/* Dialog */
.birthlist-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  margin: auto;
}

.birthlist-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.birthlist-dialog h3 {
  font-family: 'Amatic SC', cursive;
  font-size: 2rem;
  color: var(--yellow-dark);
  margin-bottom: 16px;
  text-align: center;
}

.birthlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Reuse global input styles inside dialog */
.birthlist-form .field-group {
  text-align: left;
}

.birthlist-form input[type="text"],
.birthlist-form input[type="url"] {
  padding: 12px 16px;
  border: 2px solid var(--yellow-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.birthlist-form input[type="text"]:focus,
.birthlist-form input[type="url"]:focus {
  border-color: var(--yellow);
}

.birthlist-form input[type="file"] {
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-muted);
  padding: 8px 0;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.dialog-actions .btn-primary,
.dialog-actions .btn-secondary {
  padding: 12px 24px;
  font-size: 0.95rem;
}
