/* ============================================================
   Funnyzz Share Modal + Daily Challenge Widget
   Matches site design: dark theme, purple/gold accents
   ============================================================ */

/* ---- Share Modal ---- */
.fz-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.3s ease;
}

.fz-share-modal.show {
  background: rgba(0, 0, 0, 0.75);
  pointer-events: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fz-share-card {
  background: var(--card, #1a1f3d);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 380px;
  width: calc(100% - 40px);
  text-align: center;
  border: 1px solid rgba(108, 92, 231, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.fz-share-modal.show .fz-share-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.fz-share-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
}

.fz-share-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.fz-share-score {
  font-size: 17px;
  color: var(--accent2, #00cec9);
  font-weight: 600;
  margin-bottom: 4px;
}

.fz-share-best {
  font-size: 14px;
  color: var(--muted, #9aa0c7);
  margin-bottom: 4px;
}

.fz-share-streak {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold, #ffd24a);
  margin-bottom: 20px;
}

/* ---- Share Buttons ---- */
.fz-share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.fz-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, filter 0.15s ease;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
}

.fz-btn:active {
  transform: scale(0.95);
}

.fz-btn:hover {
  filter: brightness(1.15);
}

.fz-twitter {
  background: #000;
}

.fz-facebook {
  background: #1877f2;
}

.fz-reddit {
  background: #ff4500;
}

.fz-copy {
  background: var(--accent, #6c5ce7);
}

.fz-btn svg {
  flex-shrink: 0;
}

/* ---- Action Buttons ---- */
.fz-share-actions {
  display: flex;
  gap: 10px;
}

.fz-play-again {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: var(--accent, #6c5ce7);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.fz-play-again:active {
  transform: scale(0.96);
}

.fz-play-again:hover {
  filter: brightness(1.15);
}

.fz-next-game {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text, #e8eaf6);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.12s ease, background 0.15s ease;
}

.fz-next-game:hover {
  background: rgba(255, 255, 255, 0.14);
}

.fz-next-game:active {
  transform: scale(0.96);
}

/* ---- Daily Challenge Widget (Homepage) ---- */
.fz-daily-card {
  display: block;
  background: linear-gradient(135deg, var(--card, #1a1f3d) 0%, rgba(108, 92, 231, 0.15) 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(108, 92, 231, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.fz-daily-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #6c5ce7);
  box-shadow: 0 12px 30px rgba(108, 92, 231, 0.2);
}

.fz-daily-badge {
  display: inline-block;
  background: var(--gold, #ffd24a);
  color: #0f1226;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.fz-daily-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}

.fz-daily-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.fz-daily-desc {
  font-size: 14px;
  color: var(--muted, #9aa0c7);
  margin-bottom: 8px;
}

.fz-daily-streak {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold, #ffd24a);
}

.fz-daily-streak-new {
  font-size: 13px;
  color: var(--accent2, #00cec9);
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .fz-share-card {
    padding: 28px 20px 24px;
  }

  .fz-share-emoji {
    font-size: 44px;
  }

  .fz-share-title {
    font-size: 22px;
  }

  .fz-share-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .fz-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .fz-btn span {
    font-size: 13px;
  }
}
