/* ============================================================
   dzishandlowa.pl — Custom Styles
   Tailwind CSS handles layout/spacing/colors.
   This file covers animations, transitions, and print.
   ============================================================ */

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Status Card Entrance ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}

/* ─── Countdown Digit Transition ─── */
.countdown-digit {
  transition: transform 0.3s ease;
}

.countdown-digit.tick {
  transform: scale(1.08);
}

/* ─── Calendar Day Hover ─── */
.cal-day {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cal-day:hover {
  transform: scale(1.15);
}

/* ─── Cookie Banner Slide ─── */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner-enter {
  animation: slideUp 0.35s ease-out both;
}

/* ─── Month Card ─── */
.month-card {
  transition: box-shadow 0.2s ease;
}

.month-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Year Selector Button ─── */
.year-btn {
  transition: all 0.15s ease;
}

.year-btn:hover {
  background-color: #f1f5f9;
}

.year-btn.active {
  background-color: #1e293b;
  color: #ffffff;
}

/* ─── Shared page link hover ─── */
a.nav-link {
  position: relative;
}

a.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.2s ease;
}

a.nav-link:hover::after {
  width: 100%;
}

/* ─── Tooltip (share feedback) ─── */
.tooltip {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tooltip.show {
  opacity: 1;
}

/* ─── Print ─── */
@media print {
  .no-print,
  #cookie-banner,
  #ad-slot-1,
  #ad-slot-2,
  #share-btn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  .month-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ─── Scrollbar (subtle) ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
