/* Tribute sub-route — layers on top of styles.css */

.tribute-page { padding: 32px 24px 64px; }
.tribute-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.tribute-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.tribute-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}
.tribute-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--primary);
}
.tribute-close .material-icons-outlined { font-size: 24px; }
.tribute-close:hover { background: rgba(0,0,0,0.05); text-decoration: none; }

/* Type toggle (memory / honour) — pill row */
.tribute-type {
  display: inline-flex;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-card);
  padding: 4px;
  margin-bottom: 16px;
}
.tribute-type__btn {
  background: none;
  border: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mute);
  border-radius: 999px;
  cursor: pointer;
}
.tribute-type__btn--active {
  background: var(--primary);
  color: #fff;
}

/* With-card / Without-card tabs */
.tribute-card-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: #f0f1f4;
  border-radius: var(--radius-sm);
  padding: 6px;
  max-width: 480px;
  margin-bottom: 24px;
}
.tribute-card-mode__tab {
  background: none;
  border: 0;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.tribute-card-mode__tab--active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Grid */
.tribute-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.tribute-form .cc-form-group { margin-bottom: 16px; }

.tribute-deliver { margin-top: 24px; }
.tribute-deliver__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}
.tribute-deliver__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--bg-card-soft);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  margin-bottom: 16px;
  max-width: 480px;
}
.tribute-deliver__tab {
  background: none;
  border: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
}
.tribute-deliver__tab .material-icons-outlined { font-size: 18px; }
.tribute-deliver__tab--active {
  background: var(--primary);
  color: #fff;
}

.tribute-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.tribute-actions .btn { min-width: 100px; }

/* Card pane */
.tribute-card-pane {
  background: var(--bg-card-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}
.tribute-card-pane__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}
.tribute-card-preview {
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.tribute-card-preview__img {
  width: 100%;
  height: auto;
  display: block;
}
.tribute-card-preview__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.tribute-card-preview__nav--prev { left: 8px; }
.tribute-card-preview__nav--next { right: 8px; }
.tribute-card-thumbs {
  display: flex;
  gap: 8px;
}
.tribute-card-thumb {
  flex: 1;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}
.tribute-card-thumb img { width: 100%; height: auto; display: block; }
.tribute-card-thumb--active { border-color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
  .tribute-grid { grid-template-columns: 1fr; padding: 16px; }
  .tribute-page { padding: 16px; }
  .tribute-card-mode { max-width: 100%; }
  .tribute-deliver__tabs { max-width: 100%; }
}
