/* daily-pick.css - Shared styles for Joke/Wisdom of the Day pages */

/* Page header */
.daily-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: #ffffff;
}

.daily-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
}

.daily-header p {
  font-size: 1.1rem;
  color: #888;
  margin: 0;
}

/* Cards container */
.daily-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Flip card wrapper */
.flip-card {
  width: 320px;
  height: 380px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

/* Front of card */
.flip-card-front {
  background: #ffffff;
  border: 1px solid #e2e5ea;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.flip-card-front .category-label {
  display: inline-block;
  background: #4a6cf7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.flip-card-front .card-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #2d2d2d;
  flex: 1;
  display: flex;
  align-items: center;
}

.flip-card-front .tap-hint {
  font-size: 0.8rem;
  color: #bbb;
  margin-top: 1rem;
}

/* Back of card (punchline / reveal) */
.flip-card-back {
  background: #1a1a2e;
  color: #ffffff;
  transform: rotateY(180deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.flip-card-back .card-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
}

.flip-card-back .tap-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1.5rem;
}

/* Loading state */
.daily-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
  font-size: 1.1rem;
}

/* Navigation dots (mobile carousel) */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #4a6cf7;
}

/* Swipe nav buttons (mobile) */
.carousel-nav {
  display: none;
  justify-content: center;
  gap: 1rem;
  padding: 0 0 1rem;
}

.carousel-nav button {
  background: #f7f8fa;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2d2d2d;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', system-ui, sans-serif;
}

.carousel-nav button:hover {
  background: #eef0f4;
}

/* Back link */
.daily-back {
  text-align: center;
  padding: 0 0 3rem;
}

.daily-back a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #f7f8fa;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  color: #2d2d2d;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.daily-back a:hover {
  background: #eef0f4;
}

/* Wisdom-specific overrides */
.wisdom-mode .flip-card-front .category-label {
  background: #6b5ce7;
}

.wisdom-mode .flip-card-back {
  background: #2d1a4e;
}

.wisdom-mode .flip-card-front .card-text {
  font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .daily-header h1 {
    font-size: 2rem;
  }

  .daily-cards {
    padding: 2rem 1rem 1rem;
    gap: 0;
    overflow: hidden;
  }

  .flip-card {
    width: 85vw;
    max-width: 340px;
    height: 350px;
    flex-shrink: 0;
  }

  .flip-card.hidden-mobile {
    display: none;
  }

  .carousel-dots {
    display: flex;
  }

  .carousel-nav {
    display: flex;
  }
}
