/* cards.css — Gradient fill cards (events, games, stories, testimonials) */

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-surface-alt) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(91, 63, 255, 0.04);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover {
  border-color: var(--c-accent-bright);
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(91, 63, 255, 0.18);
}

/* Shine sweep on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  background: linear-gradient(125deg, transparent 40%, rgba(123, 97, 255, 0.18) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 2;
}

/* ---------- Color variants (per event / story type) ---------- */
/* Violet (default — Corporate / Story 1) */
.card--violet:hover {
  border-color: var(--c-accent-bright);
  box-shadow: 0 16px 44px rgba(123, 97, 255, 0.22);
}
.card--violet::after {
  background: var(--c-accent-bright);
}

/* Pink (Wedding / Story 2) */
.card--pink:hover {
  border-color: var(--c-accent-pink);
  box-shadow: 0 16px 44px rgba(233, 75, 138, 0.22);
}

/* Gold (Birthday / Story 3) */
.card--gold:hover {
  border-color: var(--c-accent-gold-bright);
  box-shadow: 0 16px 44px rgba(245, 158, 11, 0.22);
}

/* Mint (Themed / Story 4) */
.card--mint:hover {
  border-color: var(--c-accent-mint-bright);
  box-shadow: 0 16px 44px rgba(20, 184, 166, 0.22);
}

/* Top accent strip on colored cards — clipped by parent's overflow:hidden
   so it follows the card's rounded corners naturally */
.card--violet::after,
.card--pink::after,
.card--gold::after,
.card--mint::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: height 0.3s ease;
  z-index: 3;
}
.card--violet::after { background: linear-gradient(90deg, var(--c-accent-bright), #A855F7); }
.card--pink::after   { background: linear-gradient(90deg, var(--c-accent-pink), var(--c-accent-pink-bright)); }
.card--gold::after   { background: linear-gradient(90deg, var(--c-accent-gold), var(--c-accent-gold-bright)); }
.card--mint::after   { background: linear-gradient(90deg, var(--c-accent-mint), var(--c-accent-mint-bright)); }

.card--violet:hover::after,
.card--pink:hover::after,
.card--gold:hover::after,
.card--mint:hover::after { height: 6px; }

.card h3 {
  margin-bottom: 12px;
}

.card h4 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
}

.card .link-arrow {
  margin-top: 16px;
}

/* Story card */
.card--story {
  padding: 28px;
}

.card--story h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Testimonial card */
.card--testimonial {
  padding: 28px;
  position: relative;
}

.card--testimonial .quote-mark {
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--c-text);
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1.65;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent-bright) 0%, #A855F7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91, 63, 255, 0.2);
}

/* Cycle avatar colors across 4 hues for visual variety */
.card--testimonial:nth-child(4n+1) .testimonial-avatar {
  background: linear-gradient(135deg, var(--c-accent-bright) 0%, #A855F7 100%);
  box-shadow: 0 4px 12px rgba(123, 97, 255, 0.25);
}
.card--testimonial:nth-child(4n+2) .testimonial-avatar {
  background: linear-gradient(135deg, var(--c-accent-pink) 0%, var(--c-accent-pink-bright) 100%);
  box-shadow: 0 4px 12px rgba(233, 75, 138, 0.25);
}
.card--testimonial:nth-child(4n+3) .testimonial-avatar {
  background: linear-gradient(135deg, var(--c-accent-gold) 0%, var(--c-accent-gold-bright) 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.card--testimonial:nth-child(4n+4) .testimonial-avatar {
  background: linear-gradient(135deg, var(--c-accent-mint) 0%, var(--c-accent-mint-bright) 100%);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

.testimonial-name {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text);
}

/* Testimonials grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

/* ---------- Process cards (numbered steps on dark bg) ---------- */
.process-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--f-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.process-card--violet .process-number {
  background: linear-gradient(135deg, var(--c-accent-bright), #A855F7);
  box-shadow: 0 0 32px rgba(123, 97, 255, 0.55);
}
.process-card--pink .process-number {
  background: linear-gradient(135deg, var(--c-accent-pink), var(--c-accent-pink-bright));
  box-shadow: 0 0 32px rgba(233, 75, 138, 0.55);
}
.process-card--gold .process-number {
  background: linear-gradient(135deg, var(--c-accent-gold), var(--c-accent-gold-bright));
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.55);
}
.process-card--mint .process-number {
  background: linear-gradient(135deg, var(--c-accent-mint), var(--c-accent-mint-bright));
  box-shadow: 0 0 32px rgba(20, 184, 166, 0.55);
}

.process-card h4 { color: #F0EFF4; }
.process-card p  { color: #B8B5CC; }

.process-card--violet:hover { border-color: var(--c-accent-bright); }
.process-card--pink:hover   { border-color: var(--c-accent-pink-bright); }
.process-card--gold:hover   { border-color: var(--c-accent-gold-bright); }
.process-card--mint:hover   { border-color: var(--c-accent-mint-bright); }

/* Reset the top accent strip for process cards (they already have glowing numbers) */
.process-card::after { display: none; }

/* Game card */
.card--game {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.card--game > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.card--game .img-placeholder {
  margin-bottom: 20px;
  aspect-ratio: 4 / 3;
}

/* CTA button sticks to the bottom so card heights align */
.card--game .btn {
  margin-top: auto;
  align-self: center;
}

/* Event detail block (alternating layout) */
.event-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}

.event-block:nth-child(even) .event-block__content {
  order: 2;
}

.event-block:nth-child(even) .event-block__image {
  order: 1;
}

.event-block__content h3 {
  margin-bottom: 16px;
}

.event-block__content p {
  margin-bottom: 20px;
}

/* Game detail section */
.game-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
}

/* Per-game accent colors for headings and meta labels */
.game-section--violet .game-detail__info h2 { color: var(--c-accent); }
.game-section--violet .game-detail__meta h4 { color: var(--c-accent); }

.game-section--pink .game-detail__info h2 { color: var(--c-accent-pink); }
.game-section--pink .game-detail__meta h4 { color: var(--c-accent-pink); }

.game-section--gold .game-detail__info h2 { color: var(--c-accent-gold); }
.game-section--gold .game-detail__meta h4 { color: var(--c-accent-gold); }

.game-section--mint .game-detail__info h2 { color: var(--c-accent-mint); }
.game-section--mint .game-detail__meta h4 { color: var(--c-accent-mint); }

/* Colored top border strip on each game section */
.game-section {
  position: relative;
}

.game-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 0 0 4px 4px;
}

.game-section--violet::before { background: linear-gradient(90deg, var(--c-accent-bright), #A855F7); }
.game-section--pink::before   { background: linear-gradient(90deg, var(--c-accent-pink), var(--c-accent-pink-bright)); }
.game-section--gold::before   { background: linear-gradient(90deg, var(--c-accent-gold), var(--c-accent-gold-bright)); }
.game-section--mint::before   { background: linear-gradient(90deg, var(--c-accent-mint), var(--c-accent-mint-bright)); }

.game-detail__info h2 {
  margin-bottom: 16px;
}

.game-detail__info p {
  margin-bottom: 16px;
}

.game-detail__meta {
  margin-top: 20px;
}

.game-detail__meta h4 {
  font-size: 1rem;
  color: var(--c-accent);
  margin-bottom: 6px;
  margin-top: 16px;
}

.game-detail__meta h4:first-child {
  margin-top: 0;
}

.game-detail__meta p {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Values card */
.card--value {
  text-align: center;
  padding: 40px 32px;
}

.card--value h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

/* Stat card */
.card--stat {
  text-align: center;
  padding: 32px 24px;
}
