/* ============================================
   DICSŐSÉGFAL & SZÉGYENFAL – Shared Styles
   ============================================ */

@import url('fonts/fonts.css');

:root {
  /* Glory colors */
  --gold: #d4a843;
  --gold-light: #f0d78c;
  --gold-dark: #9e7a1f;
  --cream: #faf6eb;
  --cream-dark: #f0e8d4;
  --dark: #1a1611;
  --dark-warm: #2a2318;
  --text: #3d3427;
  --text-light: #7a6e5f;

  /* Shame colors */
  --black: #0a0a0a;
  --black-light: #1a1a1a;
  --ash: #2a2a2a;
  --blood: #8b1a1a;
  --blood-light: #b22222;
  --smoke: #666;
  --ghost: #999;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Glory Body ── */
body.glory {
  background: var(--cream);
  color: var(--text);
}

/* ── Shame Body ── */
body.shame {
  background: var(--black);
  color: var(--ghost);
}

/* ============================================
   HEADER – Glory
   ============================================ */

.glory-header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 168, 67, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(212, 168, 67, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-warm) 100%);
  overflow: hidden;
}

.glory-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(212, 168, 67, 0.03) 0deg 10deg,
    transparent 10deg 20deg
  );
  animation: slowRotate 120s linear infinite;
}

@keyframes slowRotate {
  to { transform: rotate(360deg); }
}

.glory-header .laurel {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.4));
}

.glory-header h1 {
  position: relative;
  z-index: 1;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 70%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.glory-header .subtitle {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(240, 215, 140, 0.7);
  margin-top: 1rem;
  max-width: 700px;
}

.glory-header .date-badge {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 0.5rem 2rem;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
  color: rgba(212, 168, 67, 0.4);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ============================================
   HEADER – Shame
   ============================================ */

.shame-header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(139, 26, 26, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #000 0%, var(--black-light) 100%);
}

.shame-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--blood-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(139, 26, 26, 0.5);
}

.shame-header .subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--smoke);
  margin-top: 1rem;
  max-width: 700px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.7rem 2rem;
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: rgba(212, 168, 67, 0.1);
  border-color: var(--gold);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.glory .section-title {
  color: var(--dark);
}

.shame .section-title {
  color: var(--blood-light);
}

.section-subtitle {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.glory .section-subtitle {
  color: var(--text-light);
}

.shame .section-subtitle {
  color: var(--smoke);
}

.divider {
  width: 80px;
  height: 2px;
  margin: 1.5rem auto 3rem;
}

.glory .divider {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.shame .divider {
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
}

/* ============================================
   CARDS GRID
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* ── Glory Card ── */
.card {
  position: relative;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glory .card {
  background: white;
  border: 1px solid rgba(212, 168, 67, 0.2);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 30px rgba(0, 0, 0, 0.04);
}

.glory .card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(212, 168, 67, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(212, 168, 67, 0.4);
}

/* ── Shame Card ── */
.shame .card {
  background: var(--black-light);
  border: 1px solid rgba(139, 26, 26, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.shame .card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 26, 26, 0.5);
  box-shadow: 0 8px 30px rgba(139, 26, 26, 0.15);
}

/* Card elements */
.card .logo-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}

.glory .card .logo-container {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  border: 2px solid rgba(212, 168, 67, 0.3);
}

.shame .card .logo-container {
  background: var(--ash);
  border: 2px solid rgba(139, 26, 26, 0.3);
}

.card .logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.card .logo-container .logo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
}

.glory .card .logo-initials {
  color: var(--gold-dark);
}

.shame .card .logo-initials {
  color: var(--smoke);
}

.card .party-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.glory .card .party-name {
  color: var(--dark);
}

.shame .card .party-name {
  color: #ccc;
}

.card .person-name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.glory .card .person-name {
  color: var(--dark);
}

.card .detail {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.glory .card .detail {
  color: var(--text-light);
}

.shame .card .detail {
  color: var(--smoke);
}

.card .date {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.glory .card .date {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), rgba(212, 168, 67, 0.2));
  color: var(--gold-dark);
}

.shame .card .date {
  background: rgba(139, 26, 26, 0.15);
  color: var(--blood-light);
}

.card .source-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.card .source-link:hover {
  opacity: 1;
}

.glory .card .source-link {
  color: var(--gold-dark);
}

.shame .card .source-link {
  color: var(--ghost);
}

.card .badge {
  position: absolute;
  top: -8px;
  right: 16px;
  padding: 0.2rem 0.8rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.glory .card .badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
}

.shame .card .badge {
  background: var(--blood);
  color: #ddd;
}

.card .count-badge {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.shame .card .count-badge {
  color: var(--blood-light);
}

/* ============================================
   EMPTY SLOTS (Placeholder Cards)
   ============================================ */

.card.empty {
  border-style: dashed;
  opacity: 0.5;
  cursor: default;
}

.glory .card.empty {
  border-color: rgba(212, 168, 67, 0.25);
  background: rgba(255, 255, 255, 0.5);
}

.glory .card.empty:hover {
  transform: none;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 30px rgba(0, 0, 0, 0.04);
}

.shame .card.empty {
  border-color: rgba(139, 26, 26, 0.15);
  background: rgba(26, 26, 26, 0.5);
}

.shame .card.empty:hover {
  transform: none;
}

.card.empty .logo-container {
  opacity: 0.3;
}

.glory .card.empty .logo-container {
  border-color: rgba(212, 168, 67, 0.15);
}

.card.empty .placeholder-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.9rem;
}

.glory .card.empty .placeholder-text {
  color: var(--text-light);
  opacity: 0.6;
}

.shame .card.empty .placeholder-text {
  color: var(--smoke);
  opacity: 0.5;
}

/* ============================================
   SHAME LINK (CTA on Glory page)
   ============================================ */

.shame-link-section {
  text-align: center;
  padding: 4rem 2rem;
  margin: 0 auto;
  max-width: 800px;
}

.shame-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 3rem;
  background: var(--dark);
  color: var(--blood-light);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 12px;
  border: 1px solid rgba(139, 26, 26, 0.3);
  transition: all 0.4s ease;
  text-transform: uppercase;
}

.shame-link:hover {
  background: #111;
  border-color: var(--blood-light);
  box-shadow: 0 0 40px rgba(139, 26, 26, 0.2);
  transform: scale(1.03);
}

.shame-link-desc {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   Glory Link (on shame page → back to glory)
   ============================================ */

.glory-link-section {
  text-align: center;
  padding: 4rem 2rem;
  margin: 0 auto;
  max-width: 800px;
}

.glory-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 67, 0.5);
  transition: all 0.4s ease;
  text-transform: uppercase;
}

.glory-link:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  border-color: var(--gold-light);
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.3);
  transform: scale(1.03);
}

.glory-link-desc {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--ghost);
  font-size: 0.95rem;
}

/* ============================================
   MKKP Special Card
   ============================================ */

.card.special {
  border-width: 2px;
}

.glory .card.special {
  border-color: rgba(212, 168, 67, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 246, 235, 1) 100%);
}

.card .special-note {
  margin-top: 0.8rem;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
}

.glory .card .special-note {
  background: rgba(212, 168, 67, 0.08);
  color: var(--text-light);
}

/* ============================================
   QUOTE
   ============================================ */

.quote-section {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.8;
}

.glory .quote {
  color: var(--text);
}

.quote-author {
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.glory .quote-author {
  color: var(--gold-dark);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.8rem;
}

.glory footer {
  color: var(--text-light);
  border-top: 1px solid rgba(212, 168, 67, 0.15);
}

.shame footer {
  color: var(--smoke);
  border-top: 1px solid rgba(139, 26, 26, 0.15);
}

footer a {
  text-decoration: none;
}

.glory footer a {
  color: var(--gold-dark);
}

.shame footer a {
  color: var(--blood-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .shame-link,
  .glory-link {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .glory-header .laurel {
    font-size: 3.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }
.card:nth-child(10) { animation-delay: 1.0s; }

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

.card.empty {
  animation: fadeUp 0.6s ease forwards;
}

/* ============================================
   SOURCE CREDIT (Footer)
   ============================================ */

.source-credit {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  opacity: 0.7;
}
