/* ── Seasonal Visual Calendar — Frontend Styles ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --svc-primary:      #40C4D3;
  --svc-text:         #1E293B;
  --svc-text-subtle:  #475569;
  --svc-bg:           #FFFFFF;
  --svc-page-bg:      #F3F4F6;
  --svc-radius:       14px;
  --svc-radius-sm:    8px;
  --svc-shadow:       0 4px 24px rgba(30,41,59,.10);

  /* Season palette */
  --svc-high-bg:      rgba(255, 120, 60, 0.13);
  --svc-high-ring:    #FF7820;
  --svc-spring-bg:    rgba(255, 200, 50, 0.14);
  --svc-spring-dot:   #3B82F6;
  --svc-autumn-bg:    rgba(59, 130, 246, 0.12);
  --svc-autumn-dot:   #F59E0B;
  --svc-special-ring: var(--svc-primary);
}

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.svc-wrapper {
  font-family: 'Inter', sans-serif;
  color: var(--svc-text);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Calendar card ───────────────────────────────────────────────────────── */
.svc-calendar {
  background: var(--svc-bg);
  border-radius: var(--svc-radius);
  box-shadow: var(--svc-shadow);
  overflow: hidden;
  border: 1px solid rgba(64,196,211,.18);
}

/* ── Header (month nav) ──────────────────────────────────────────────────── */
.svc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, var(--svc-primary) 0%, #2AA8B8 100%);
  color: #fff;
}

.svc-header__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  flex: 1;
}

.svc-nav-btn {
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.svc-nav-btn:hover {
  background: rgba(255,255,255,.32);
  transform: scale(1.08);
}
.svc-nav-btn:active { transform: scale(.96); }

/* ── Weekday row ─────────────────────────────────────────────────────────── */
.svc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #F8FAFB;
  border-bottom: 1px solid rgba(64,196,211,.12);
}
.svc-weekday {
  text-align: center;
  padding: 8px 0;
  font-size: .72rem;
  font-weight: 600;
  color: var(--svc-text-subtle);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.svc-weekday:first-child { color: #E55353; }  /* Dom */
.svc-weekday:last-child  { color: #E55353; }  /* Sáb */

/* ── Days grid ───────────────────────────────────────────────────────────── */
.svc-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* ── Single day cell ─────────────────────────────────────────────────────── */
.svc-day {
  position: relative;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px 4px;
  border-right: 1px solid rgba(64,196,211,.08);
  border-bottom: 1px solid rgba(64,196,211,.08);
  transition: background .18s;
}
.svc-day:nth-child(7n) { border-right: none; }

/* empty cells */
.svc-day--empty {
  background: var(--svc-page-bg);
  opacity: .5;
}

/* ── Season backgrounds ──────────────────────────────────────────────────── */
.svc-day--high   { background-color: var(--svc-high-bg); }
.svc-day--spring { background-color: var(--svc-spring-bg); }
.svc-day--autumn { background-color: var(--svc-autumn-bg); }

/* ── Day number ──────────────────────────────────────────────────────────── */
.svc-day__num {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--svc-text);
  z-index: 1;
  line-height: 1;
}

/* Special date ring */
.svc-day--special .svc-day__num {
  border: 2.5px solid var(--svc-special-ring);
  border-radius: 50%;
  color: var(--svc-primary);
  font-weight: 700;
}

/* Today highlight */
.svc-day--today .svc-day__num {
  background: var(--svc-primary);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}
.svc-day--today.svc-day--special .svc-day__num {
  background: var(--svc-primary);
  border-color: #fff;
  outline: 2.5px solid var(--svc-primary);
}

/* ── Season indicator dot ────────────────────────────────────────────────── */
.svc-day__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
}
.svc-day--spring .svc-day__dot { background: var(--svc-spring-dot); }
.svc-day--autumn .svc-day__dot { background: var(--svc-autumn-dot); }
.svc-day--high   .svc-day__dot { display: none; } /* fire icon instead */

/* ── Fire icon (alta temporada) ──────────────────────────────────────────── */
.svc-day__icon {
  font-size: .75rem;
  line-height: 1;
  margin-top: 2px;
}

/* ── Special label tooltip ───────────────────────────────────────────────── */
.svc-day__label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--svc-text);
  color: #fff;
  font-size: .68rem;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 10;
  font-weight: 500;
}
.svc-day__label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--svc-text);
}
.svc-day--special:hover .svc-day__label { opacity: 1; }

/* ── Legend ──────────────────────────────────────────────────────────────── */
.svc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  padding: 0 4px;
  justify-content: center;
}
.svc-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--svc-text-subtle);
  font-weight: 500;
}
.svc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.svc-legend-high   .svc-legend-dot { background: var(--svc-high-ring); }
.svc-legend-spring .svc-legend-dot { background: var(--svc-spring-dot); }
.svc-legend-autumn .svc-legend-dot { background: var(--svc-autumn-dot); }
.svc-legend-dot--ring {
  background: transparent;
  border: 2px solid var(--svc-special-ring);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .svc-day { min-height: 46px; }
  .svc-day__num { width: 24px; height: 24px; font-size: .75rem; }
  .svc-header__title { font-size: 1rem; }
}
