/**
 * DaysAndDates.com - Card System Styles
 * Event Cards, Timeline Cards, Birthday Cards, Quote Cards, Skeletons
 */

/* Event Card */
.event-card {
  padding: clamp(1.25rem, 1rem + 0.5vw, 1.75rem);
  transition: transform var(--transition-spring), box-shadow var(--transition-spring), border-color var(--transition-base);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--brand-primary-glow);
  border-color: var(--glass-border-hover);
}

.badge-tag-subtle {
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.event-card-title {
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin-bottom: 0.65rem;
}

.event-card-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.event-card-title-link:hover {
  color: var(--brand-primary);
}

.event-card-summary {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 1rem;
}

.event-card-context {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
}

/* Timeline System */
.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-entry {
  display: flex;
  gap: 1.5rem;
}

.timeline-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 3px solid var(--surface-base);
  box-shadow: 0 0 0 2px var(--brand-primary);
  z-index: 2;
  margin-top: 1.5rem;
  transition: transform var(--transition-spring);
}

.timeline-entry:hover .timeline-dot {
  transform: scale(1.35);
  background: var(--brand-accent);
  box-shadow: 0 0 0 3px var(--brand-accent);
}

.timeline-line {
  position: absolute;
  top: 1.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--border-medium) 0%, rgba(84, 82, 246, 0.2) 100%);
  z-index: 1;
}

.timeline-entry:last-child .timeline-line {
  display: none;
}

.timeline-card {
  flex-grow: 1;
  padding: 1.35rem 1.65rem;
}

.timeline-year-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary);
  padding: 0.2rem 0.6rem;
  background: var(--brand-primary-light);
  border-radius: var(--radius-xs);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* Birthday Card */
.birthday-card {
  padding: 1.35rem 1.5rem;
}

.birthday-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent-light) 0%, var(--brand-primary-light) 100%);
  border: 2px solid var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-accent);
  font-size: 1rem;
}

.birthday-name {
  line-height: 1.2;
}

/* Quote & Fact Cards */
.quote-card {
  overflow: hidden;
}

.quote-watermark {
  position: absolute;
  top: -20px;
  right: 15px;
  font-family: var(--font-editorial);
  font-size: 8rem;
  color: var(--text-muted);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.editorial-quote {
  font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

/* Editorial Quote & Wisdom Swiper Slider */
.quote-slider-container {
  width: 100%;
  position: relative;
}

.quote-slider-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 20px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
}

.quote-slider-card:hover {
  border-color: rgba(84, 82, 246, 0.3);
}

.quote-slider-watermark {
  position: absolute;
  top: -20px;
  right: 25px;
  font-family: var(--font-editorial, Georgia, serif);
  font-size: clamp(6.5rem, 5rem + 5vw, 11rem);
  color: var(--text-primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.quote-slider-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-editorial, Georgia, serif);
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.95rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

.quote-slide-counter {
  letter-spacing: 0.05em;
}

.quote-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast, 0.2s ease);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.quote-nav-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 82, 246, 0.25);
}

.quote-nav-btn:active {
  transform: translateY(0);
}

.quote-nav-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Country Selector Card */
.country-select-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.country-select-card:hover {
  background: var(--surface-active);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.country-select-card.is-selected {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary);
}

.country-flag {
  font-size: 1.75rem;
  line-height: 1;
}

.country-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
  display: block;
}

.country-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.check-indicator {
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--brand-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.country-select-card.is-selected .check-indicator {
  opacity: 1;
}

/* Toast System */
.dnd-toast {
  position: fixed;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: var(--z-toast);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease-spring), transform 240ms var(--ease-spring), visibility 240ms;
  pointer-events: none;
}

.dnd-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Favorites Drawer */
.favorites-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  justify-content: flex-end;
}

.favorites-drawer[hidden] {
  display: none !important;
}

.favorites-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 180ms ease;
}

.favorites-content {
  position: relative;
  width: min(420px, 90vw);
  height: 100%;
  background: var(--surface-base);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  z-index: 2;
  animation: slideInRight 260ms var(--ease-spring);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.favorites-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.favorites-item-card:hover {
  background: var(--surface-active);
  border-color: var(--brand-primary);
}

/* ==========================================================================
   Photographic Date Card (andtodayis.com Style with DaysAndDates Polish)
   ========================================================================== */

.date-card-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1vw, 1.15rem);
  width: 100%;
}

.event-grid-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.event-grid-item .date-card {
  flex-grow: 1;
  height: 100%;
}

@media (max-width: 991px) {
  .date-card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 680px) {
  .date-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .date-card-list {
    grid-template-columns: 1fr;
  }
}

.date-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 22px);
  min-height: clamp(275px, 20vw, 305px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.85rem, 1vw, 1.15rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--surface-card);
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 340ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease;
}

.date-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 208, 26, 0.28);
  border-color: rgba(255, 208, 26, 0.6);
}

.date-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.date-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.date-card:hover .date-card__media img {
  transform: scale(1.08);
  filter: brightness(1.04);
}

.date-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.65) 0%, rgba(7, 10, 18, 0.2) 28%, rgba(7, 10, 18, 0.5) 55%, rgba(5, 8, 16, 0.94) 85%, rgba(3, 5, 10, 0.99) 100%);
  transition: background 300ms ease;
}

.date-card:hover .date-card__shade {
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.52) 0%, rgba(7, 10, 18, 0.12) 28%, rgba(7, 10, 18, 0.44) 52%, rgba(5, 8, 16, 0.92) 85%, rgba(3, 5, 10, 0.99) 100%);
}

.date-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.date-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.date-card__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.9rem;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease, box-shadow 200ms ease;
}

.date-card:hover .date-card__arrow {
  transform: translateX(4px) scale(1.12);
  background: var(--brand-primary, #4f46e5);
  border-color: var(--brand-primary, #4f46e5);
  box-shadow: 0 4px 14px var(--brand-primary-glow);
}

.date-card__copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.date-card__date {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.06em;
  text-transform:capitalize;
  margin-bottom: 0.15rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.date-card__title {
  font-family: var(--font-display, serif);
  font-size: clamp(1.08rem, 1.15vw, 1.28rem);
  font-weight: 750;
  line-height: 1.2;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  margin: 0;
}

.date-card__title a {
  color: inherit;
  text-decoration: none;
}

.date-card__summary {
  font-size: 0.8125rem;
  color: #f1f5f9;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.date-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.date-card__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.date-card__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.date-card__btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  text-decoration: none;
}

.date-card__btn i {
  margin: 0 !important;
  line-height: 1;
}

.date-card__btn:hover {
  background: #ffffff;
  color: #111827;
  transform: scale(1.1);
}

/* ==========================================================================
   Story Card Grid ("Reasons to look ahead")
   ========================================================================== */

.story-card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.story-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.6rem, 2.5vw, 2.6rem);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 340ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease;
}

.story-card:hover {
  transform: translateY(-8px) scale(1.008);
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.5), 0 0 28px rgba(79, 70, 229, 0.22);
  border-color: rgba(255, 208, 26, 0.45);
}

.story-card--wide {
  grid-column: span 7;
  min-height: 460px;
}

.story-card--compact {
  grid-column: span 5;
  min-height: 460px;
}

.story-card--half {
  grid-column: span 6;
  min-height: clamp(380px, 26vw, 430px);
}

.story-card--third {
  grid-column: span 4;
  min-height: clamp(340px, 22vw, 385px);
  padding: clamp(1.25rem, 1.8vw, 1.85rem);
}

.story-card--third .story-card__title {
  font-size: clamp(1.2rem, 1.35vw, 1.55rem);
  line-height: 1.22;
}

.story-card--third .story-card__subtitle {
  font-size: 0.95rem;
  line-height: 1.35;
}

.story-card--third .story-card__desc {
  font-size: 0.85rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

@media (max-width: 991px) and (min-width: 641px) {
  .story-card--half {
    grid-column: span 6;
    min-height: 380px;
  }
  .story-card--third:nth-child(3),
  .story-card--third:nth-child(4) {
    grid-column: span 6;
    min-height: 360px;
  }
  .story-card--third:nth-child(5) {
    grid-column: span 12;
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .story-card--half,
  .story-card--third {
    grid-column: span 12 !important;
    min-height: 340px;
  }
}

.story-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card:hover .story-card__media img {
  transform: scale(1.08);
  filter: brightness(1.04);
}

.story-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 16, 26, 0.3) 0%, rgba(12, 16, 26, 0.5) 45%, rgba(7, 9, 15, 0.95) 100%);
  transition: background 300ms ease;
}

.story-card:hover .story-card__shade {
  background: linear-gradient(180deg, rgba(12, 16, 26, 0.2) 0%, rgba(12, 16, 26, 0.45) 40%, rgba(7, 9, 15, 0.96) 100%);
}

.story-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.story-card__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  max-width: 640px;
}

.story-card__date {
  color: #ffd01a;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform:capitalize;
}

.story-card__title {
  font-family: var(--font-display, serif);
  font-size: clamp(1.4rem, 1.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.story-card__subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  margin: 0;
}

.story-card__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: #ffffff;
  border-bottom: 2px solid #ffd01a;
  padding-bottom: 3px;
  width: fit-content;
  transition: gap 200ms ease, color 200ms ease;
}

.story-card:hover .story-card__cta {
  gap: 0.8rem;
  color: #ffd01a;
}

/* ==========================================================================
   The Shape of Today (Bento Shape Grid)
   ========================================================================== */

.shape-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.shape-card {
  border-radius: var(--radius-xl, 24px);
  padding: clamp(1.5rem, 2vw, 2.25rem);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 340ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.shape-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 24px var(--brand-primary-glow);
  border-color: var(--glass-border-hover);
}

.year-card {
  grid-column: span 6;
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.06) 0%, rgba(255, 208, 26, 0.04) 100%), var(--surface-card);
}

.year-card__value {
  margin: 0.25rem 0 0.5rem;
}

.year-card__value strong {
  font-size: clamp(2.8rem, 3.8vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #8b5cf6 50%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.year-card__value span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
}

.year-card__progress {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
  margin-top: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.year-card__progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, #8b5cf6 50%, var(--brand-accent) 100%);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.quiz-card__eyebrow,
.shape-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  display: block;
  margin-bottom: 0.4rem;
}

.almanac-card {
  grid-column: span 6;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.04) 100%), var(--surface-card);
  border-color: rgba(245, 158, 11, 0.3);
}

.almanac-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 16px 36px -8px rgba(245, 158, 11, 0.25);
}

.almanac-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  transition: transform 200ms ease;
}

.almanac-row:hover {
  transform: translateX(3px);
}

.almanac-row + .almanac-row {
  border-top: 1px solid var(--border-subtle);
}

.almanac-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.almanac-row:hover .almanac-icon {
  transform: scale(1.12);
}

.almanac-icon--summer {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.3);
}

.almanac-icon--moon {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.3);
}

.almanac-icon--week {
  color: #10b981;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.3);
}

.almanac-copy strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-primary);
}

.almanac-copy span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.solar-card {
  grid-column: span 6;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.04) 0%, rgba(79, 70, 229, 0.04) 100%), var(--surface-card);
}

.solar-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.solar-stat-item {
  padding: 1.15rem 0.75rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease, border-color 200ms ease;
}

.solar-stat-item:hover {
  transform: translateY(-3px);
  background: var(--surface-active);
  border-color: var(--brand-accent);
}

.solar-stat-item .solar-icon {
  font-size: 1.35rem;
  color: #f59e0b;
  margin-bottom: 0.4rem;
  display: inline-block;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.solar-stat-item:hover .solar-icon {
  transform: scale(1.18);
}

.solar-stat-item .solar-val {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text-primary);
  display: block;
  letter-spacing: -0.02em;
}

.solar-stat-item .solar-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  display: block;
}

.share-card {
  grid-column: span 5;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%), var(--surface-card);
  border-color: rgba(6, 182, 212, 0.25);
}

.share-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 16px 36px -8px rgba(6, 182, 212, 0.22);
}

@media (max-width: 991px) {
  .year-card,
  .almanac-card,
  .solar-card,
  .share-card {
    grid-column: span 12;
  }
  .solar-card-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Curated Collection Photo Cards ("Reasons to explore our collections")
   ========================================================================== */

.collection-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1vw, 1.15rem);
  width: 100%;
}

@media (max-width: 991px) {
  .collection-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 680px) {
  .collection-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .collection-photo-grid {
    grid-template-columns: 1fr;
  }
}

.collection-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 22px);
  min-height: clamp(280px, 20vw, 315px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.85rem, 1vw, 1.15rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--surface-card);
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 340ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease;
}

.collection-photo-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.5), 0 0 28px rgba(16, 185, 129, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

.collection-photo-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.collection-photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-photo-card:hover .collection-photo-card__media img {
  transform: scale(1.08);
  filter: brightness(1.04);
}

.collection-photo-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.65) 0%, rgba(7, 10, 18, 0.2) 28%, rgba(7, 10, 18, 0.5) 55%, rgba(5, 8, 16, 0.94) 85%, rgba(3, 5, 10, 0.99) 100%);
  transition: background 300ms ease;
}

.collection-photo-card:hover .collection-photo-card__shade {
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.52) 0%, rgba(7, 10, 18, 0.12) 28%, rgba(7, 10, 18, 0.44) 52%, rgba(5, 8, 16, 0.92) 85%, rgba(3, 5, 10, 0.99) 100%);
}

.collection-photo-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collection-photo-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  font-weight: 750;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.collection-photo-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.9rem;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease, box-shadow 200ms ease;
}

.collection-photo-card:hover .collection-photo-card__arrow {
  transform: translateX(3px) scale(1.1);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px var(--brand-primary-glow);
}

.collection-photo-card__copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.collection-photo-card__title {
  font-family: var(--font-display, serif);
  font-size: clamp(1.05rem, 1.1vw, 1.25rem);
  font-weight: 750;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.collection-photo-card__desc {
  font-size: 0.8125rem;
  color: #f1f5f9;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   Around the World Section (World Map & Global Observances)
   ========================================================================== */

.world-map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2.1 / 1;
  min-height: 440px;
  border-radius: var(--radius-xl, 28px);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, #eff6ff 0%, #f1f5f9 50%, #e2e8f0 100%);
  box-shadow: 0 16px 44px -8px rgba(11, 26, 48, 0.12);
  isolation: isolate;
}

:root[data-theme="dark"] .world-map-wrapper {
  background: linear-gradient(135deg, #0b1120 0%, #0f172a 50%, #1e293b 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}


/* Zoomable Viewport */
.world-map-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Crisp Vector SVG Map Views */
.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.world-map-svg--light {
  display: block;
  opacity: 0.95;
}

.world-map-svg--dark {
  display: none;
  opacity: 0.85;
}

:root[data-theme="dark"] .world-map-svg--light {
  display: none;
}

:root[data-theme="dark"] .world-map-svg--dark {
  display: block;
}

/* Interactive Pins */
.world-map-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.world-map-pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  animation: pingRing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.world-map-pin.is-primary {
  color: var(--brand-primary);
  background: var(--brand-primary);
}

.world-map-pin.is-amber {
  color: #f59e0b;
  background: #f59e0b;
}

.world-map-pin.is-emerald {
  color: #10b981;
  background: #10b981;
}

.world-map-pin:hover,
.world-map-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow: 0 0 22px currentColor, 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 8;
  border-width: 3px;
  border-color: #ffffff;
}

.world-map-badge {
  position: absolute;
  top: var(--pin-top);
  left: var(--pin-left);
  transform: translate(-50%, -130%);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md), 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
  color: var(--text-primary);
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.world-map-pin:hover + .world-map-badge,
.world-map-pin:focus + .world-map-badge {
  opacity: 1;
  transform: translate(-50%, -145%);
}

/* On-Map Floating Country Preview Card */
.world-map-preview-card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  width: min(320px, calc(100% - 2rem));
  background: var(--surface-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg, 18px);
  padding: 1rem 1.15rem;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.world-map-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.28);
}

.preview-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.preview-country-flag {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.preview-country-meta {
  flex-grow: 1;
  min-width: 0;
}

.preview-country-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-category-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
}

.preview-card-body {
  font-size: 0.8125rem;
}

.preview-event-title {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.preview-event-count {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.preview-card-footer {
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-subtle);
}

.preview-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--brand-primary);
  text-decoration: none;
  transition: gap 200ms ease;
}

.preview-card-link:hover {
  gap: 0.55rem;
  color: var(--brand-primary-hover);
}

/* Color-Coded Map Legend */
.world-map-legend {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--surface-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--primary {
  background: var(--brand-primary);
  box-shadow: 0 0 6px var(--brand-primary);
}

.legend-dot--amber {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.legend-dot--emerald {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Country Quick-Access Cards */
.world-country-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.world-country-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--surface-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, background 200ms ease;
}

.world-country-pill:hover,
.world-country-pill.is-active-pill {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  background: var(--surface-hover);
  color: var(--brand-primary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(79, 70, 229, 0.15);
}

.world-country-pill strong {
  color: var(--text-primary);
  transition: color 200ms ease;
}

.world-country-pill:hover strong,
.world-country-pill.is-active-pill strong {
  color: var(--brand-primary);
}

.badge-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-dot-indicator.is-primary {
  background: var(--brand-primary);
}

.badge-dot-indicator.is-amber {
  background: #f59e0b;
}

.badge-dot-indicator.is-emerald {
  background: #10b981;
}

.world-country-flag {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (max-width: 992px) {
  .world-map-wrapper {
    aspect-ratio: 16 / 9;
    min-height: 380px;
  }
  .world-map-legend {
    display: none;
  }
}

@media (max-width: 640px) {
  .world-map-wrapper {
    aspect-ratio: 4 / 3;
    min-height: 340px;
  }
  .world-map-preview-card {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-sm);
  }
}

/* ==========================================================================
   3D Perspective Card Tilt & Specular Sheen (card-tilt-3d)
   ========================================================================== */
.card-tilt-3d {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.card-tilt-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 5;
}

.card-tilt-3d:hover::after {
  opacity: 1;
}

[data-theme="dark"] .card-tilt-3d::after {
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
}

