/* ==========================================================================
   Jellyfish Calendar — /jellyfish-calendar
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   ========================================================================== */

/* --- Hero --- */
.jf-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center center;
  background-color: #0c2340;
}
.jf-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.jf-hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.jf-hero h1 i { margin-right: 8px; }
.jf-hero p {
  color: rgba(255,255,255,.92);
  font-size: 19px;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .jf-hero { min-height: 300px; }
  .jf-hero h1 { font-size: 42px; }
  .jf-hero p { font-size: 21px; }
}

/* --- Status Banner --- */
.jf-status {
  margin: 24px 0 8px;
  padding: 22px 28px;
  border-radius: 16px;
  text-align: center;
}
.jf-status-safe {
  background: #e8f9ee;
  border: 2px solid #2a7b5b;
}
.jf-status-warning {
  background: #fef3cd;
  border: 2px solid #d4a017;
}
.jf-status-alert {
  background: #fde8e8;
  border: 2px solid #c53030;
}
.jf-status-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.jf-status-safe .jf-status-icon { color: #2a7b5b; }
.jf-status-warning .jf-status-icon { color: #d4a017; }
.jf-status-alert .jf-status-icon { color: #c53030; }
.jf-status-headline {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 4px 0;
}
.jf-status-detail {
  font-size: 17px;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

/* --- Month Navigation --- */
.jf-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 28px 0 16px;
}
.jf-month-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #555;
  transition: all .2s ease;
}
.jf-month-btn:hover {
  border-color: #2a7b5b;
  color: #2a7b5b;
  background: #f0faf5;
}
.jf-month-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  min-width: 220px;
  text-align: center;
}

/* --- Calendar Grid --- */
.jf-calendar {
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.jf-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f5f5f5;
  border-bottom: 1px solid #e4e4e4;
}
.jf-cal-header span {
  text-align: center;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.jf-cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.jf-cal-day {
  text-align: center;
  padding: 14px 4px;
  font-size: 16px;
  color: #333;
  position: relative;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
}
.jf-cal-day:nth-child(7n) { border-right: none; }
.jf-cal-day.is-empty {
  background: #fafafa;
  color: transparent;
}
.jf-cal-day.is-today {
  background: #e8f4ec;
  font-weight: 800;
  color: #2a7b5b;
}
.jf-cal-day.is-warning {
  background: #fef9e7;
}
.jf-cal-day.is-warning .jf-cal-num {
  position: relative;
}
.jf-cal-day.is-warning .jf-cal-num::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4a017;
}
.jf-cal-day.is-alert {
  background: #fde8e8;
}
.jf-cal-day.is-alert .jf-cal-num::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c53030;
}
.jf-cal-day.is-fullmoon {
  position: relative;
}
.jf-cal-day.is-fullmoon .jf-cal-num::before {
  content: '\25CB';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #888;
}
.jf-cal-num {
  position: relative;
  display: inline-block;
}

/* --- Legend --- */
.jf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0 28px;
  padding: 0 4px;
}
.jf-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}
.jf-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jf-legend-dot.dot-alert { background: #c53030; }
.jf-legend-dot.dot-warning { background: #d4a017; }
.jf-legend-dot.dot-today { background: #2a7b5b; }
.jf-legend-dot.dot-moon { background: #ddd; border: 2px solid #888; }

/* --- Upcoming Dates List --- */
.jf-upcoming {
  margin: 32px 0;
}
.jf-upcoming h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}
.jf-upcoming h2 i {
  margin-right: 8px;
  color: #2a7b5b;
}
.jf-upcoming-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jf-upcoming-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 17px;
  color: #333;
}
.jf-upcoming-item:last-child { border-bottom: none; }
.jf-upcoming-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jf-upcoming-dot.is-future { background: #d4a017; }
.jf-upcoming-dot.is-past { background: #ccc; }
.jf-upcoming-dot.is-active { background: #c53030; }
.jf-upcoming-date {
  font-weight: 700;
  min-width: 180px;
}
.jf-upcoming-label {
  color: #888;
  font-size: 14px;
}

/* --- Info Section --- */
.jf-section {
  margin: 32px 0;
}
.jf-section h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}
.jf-section h2 i {
  margin-right: 8px;
  color: #2a7b5b;
}
.jf-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .jf-info-grid { grid-template-columns: repeat(2, 1fr); }
}
.jf-info-card {
  background: #f8faf9;
  border: 1px solid #d8e8dd;
  border-radius: 14px;
  padding: 20px 22px;
}
.jf-info-card h3 {
  font-size: 19px;
  color: #2a7b5b;
  margin: 0 0 8px;
  font-weight: 700;
}
.jf-info-card p {
  font-size: 16px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}

/* --- Bottom Links --- */
.jf-bottom-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 44px 0 30px;
}
@media (min-width: 560px) {
  .jf-bottom-links { grid-template-columns: repeat(2, 1fr); }
}
.jf-bottom-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f4ec 100%);
  border: 1px solid #d0e8db;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  font-size: 17px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.jf-bottom-link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.jf-bottom-link i {
  font-size: 28px;
  color: #2a7b5b;
  flex-shrink: 0;
}
.jf-bottom-link strong { color: #2a7b5b; }

/* --- Print --- */
@media print {
  .jf-month-nav button, .jf-bottom-links { display: none; }
  .jf-hero { min-height: 80px; border-radius: 0; }
}
