/* arcane-druid-site.css — site-wide styles originating from seasons.css */

.book-cover { outline: 3px dashed magenta !important; }


.current-season-label {
    font-family: var( --e-global-typography-secondary-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-secondary-font-weight );
    color: var( --e-global-color-917df70 );
    font-size: 14px;
    margin-bottom: 0.4rem;
    display: block;
     flex-basis: 100%;
}

/* Season progress — base container */
.season-progress {
  --ad-bg: #e6eef8;           /* background track */
  --ad-fill: #2f6b44;         /* fill color (green) */
  --ad-accent: rgba(255,255,255,0.25); /* stripe highlight */
  --ad-height: 14px;
  --ad-radius: 999px;
  --ad-transition: 900ms cubic-bezier(.2,.9,.2,1);

  display: block;
  width: 100%;
  background: var(--ad-bg);
  border-radius: var(--ad-radius);
  height: var(--ad-height);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Inner fill bar */
.season-progress .bar {
  display: block;
  height: 100%;
  width: 0%; /* set inline by PHP as e.g. style="width:42%;" */
  background: linear-gradient(90deg, var(--ad-fill) 0%, color-mix(in srgb, var(--ad-fill) 85%, black 15%) 100%);
  border-radius: var(--ad-radius);
  transition: width var(--ad-transition), background 250ms ease;
  position: relative;
  overflow: hidden;
}

/* Animated diagonal stripes (subtle) */
.season-progress .bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    135deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.10) 25%,
    rgba(255,255,255,0.00) 25%,
    rgba(255,255,255,0.00) 50%
  );
  background-size: 18px 18px;
  opacity: 0.35;
  transform: translateX(0);
  transition: transform 900ms linear;
  pointer-events: none;
}

/* Make the stripes move with filled width (subtle motion) */
.season-progress .bar[data-animated="1"]::before {
  animation: ad-stripes 3s linear infinite;
}
@keyframes ad-stripes {
  from { transform: translateX(0); }
  to   { transform: translateX(-18px); }
}

/* Text overlay (percentage) — optional */
.season-progress .pct-label {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 1;
  color: #0b243a;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  pointer-events: none;
}

/* Small / compact variant */
.season-progress.small { --ad-height: 8px; }
.season-progress.large { --ad-height: 22px; }

/* Accessibility: ensure contrast when fill is very small */
.season-progress .bar[data-min-contrast="1"] {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.45) , inset 0 -1px 0 rgba(0,0,0,0.06);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .season-progress .bar,
  .season-progress .bar::before {
    transition: none !important;
    animation: none !important;
  }
}

/* Wrapper to present the progress bar and a right-aligned label (days left) like the screenshot */
.season-progress-wrap,
.season-progress-box,
.season-progress-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* gap: 1rem; */
  padding: .6rem .9rem;
  border-radius: .6rem;
  border: 1px solid rgba(180,110,95,0.25);
  background: linear-gradient(180deg, #fffdfa 0%, #fff7f5 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 0 0 1px rgba(0,0,0,0.02);
}

/* Season progress title and percentage */
.season-progress-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.season-progress-percentage {
  font-size: 14px;
  color: #2f5743;
  font-weight: 600;
  margin-top: 0.25rem;
}

.season-progress-box .season-progress {
  flex: 1 1 auto;
  margin: 0;
  height: 18px;
}

.season-days-left {
  font-size: 14px;
  color: #2f5743;
  font-weight: 600;
  white-space: nowrap;
}
.season-progress-bar-container {
  display:flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 1rem;
  align-items: center;
}
/* Make the bar fill darker and subtly glossy */
.season-progress .bar {
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.12);
}

.season-progress .bar::before {
  background-image: linear-gradient(
    135deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.12) 25%,
    rgba(255,255,255,0.00) 25%,
    rgba(255,255,255,0.00) 50%
  );
  opacity: 0.35;
}

/* When the percentage is zero, reduce contrast but keep the shape */
.season-progress .bar[style*="width:0%"] {
  background: linear-gradient(90deg, rgba(50,80,60,0.12) 0%, rgba(50,80,60,0.06) 100%);
}

/* Current Season badge */
.season-badge {
    background-color:  var( --e-global-color-ffcffb9 );
    font-family: var( --e-global-typography-secondary-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-secondary-font-weight );
    fill: var( --e-global-color-a709bb1 );
    color: var( --e-global-color-a709bb1 );
    border-style: none;
    border-radius: 26px 26px 26px 26px;
    padding: 9px 9px 9px 9px;
}

/* Hide .buy-now-btn if it does not contain a valid <a> child */
.buy-now-btn:not(:has(a[href]:not([href=""]))) {
  display: none !important;
}




/* 3d book cover styles */
/* === Static "3D Book Box" Effect === */
/* Add class 'book-tilt' to your Image widget */

.book-tilt {
  perspective: 1000px;
  text-align: center;
}

.book-tilt img {
  display: inline-block;
  transform: rotateY(-10deg) rotateX(2deg);
  border-radius: 4px;
  background: #fff;
  /* Simulated hard spine + bottom edge with layered shadows */
  box-shadow:
    0 8px 16px rgba(0,0,0,.25),         /* outer drop */
    2px 0 0 #bbb,                       /* right-side spine line */
    3px 0 0 #aaa,                       /* darker next to spine */
    4px 0 0 #999,                       /* fade spine edge */
    0 2px 0 #ccc,                       /* bottom edge highlight */
    0 4px 0 #bbb,                       /* bottom edge mid */
    0 6px 0 #aaa;                       /* bottom edge deep */
}

/* Optional thicker “hardcover” variant */
.book-tilt.thick img {
  transform: rotateY(-14deg) rotateX(2deg);
  box-shadow:
    0 10px 20px rgba(0,0,0,.28),
    4px 0 0 #bfbfbf,
    6px 0 0 #a6a6a6,
    8px 0 0 #8e8e8e,
    0 2px 0 #ccc,
    0 4px 0 #bbb,
    0 6px 0 #aaa;
}






/* ========================================
   Moon Calendar Styles
   ======================================== */

/* Calendar container */
.moon-calendar-container {
  max-width: 700px;
  margin: 20px auto;
  padding: 1rem;
  border-radius: 12px;
  font-family: var(--e-global-typography-primary-font-family, sans-serif);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Theme variants */
.moon-calendar-theme-dark {
  background-color: #333333;
  color: white;
}

.moon-calendar-theme-light {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.moon-calendar-theme-auto {
  background-color: var(--e-global-color-background, #ffffff);
  color: var(--e-global-color-text, #333333);
}

/* Calendar header */
.moon-calendar-header {
  text-align: center;
  margin-bottom: 1rem;
}

.moon-calendar-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.moon-calendar-month {
  margin-right: 0.5rem;
}

.moon-calendar-year {
  font-weight: 400;
  opacity: 0.8;
}

/* Day names header */
.moon-calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.moon-calendar-day-name {
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.moon-calendar-theme-light .moon-calendar-day-name {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Calendar grid */
.moon-calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.moon-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

/* Individual day cell */
.moon-calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  position: relative;
  min-height: 80px;
  text-align: center;
}

.moon-calendar-theme-light .moon-calendar-day-cell {
  background-color: rgba(0, 0, 0, 0.02);
}

.moon-calendar-day-cell:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.moon-calendar-theme-light .moon-calendar-day-cell:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Empty cells */
.moon-calendar-empty {
  background-color: transparent !important;
  cursor: default;
}

.moon-calendar-empty:hover {
  transform: none !important;
}

/* Today highlight */
.moon-calendar-today {
  box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.6);
  background-color: rgba(255, 215, 0, 0.1) !important;
}

.moon-calendar-theme-dark .moon-calendar-today {
  box-shadow: inset 0 0 0 2px darkgray;
}

/* Day number */
.moon-calendar-day-number {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1;
}

/* Moon phase display */
.moon-calendar-moon-phase {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.moon-calendar-moon-phase svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* Phase name (optional) */
.moon-calendar-phase-name {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
  text-align: center;
  line-height: 1.2;
  margin-top: 0.1rem;
}

/* Percentage (optional) */
.moon-calendar-percentage {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 0.1rem;
}

/* Compact layout */
.moon-calendar-compact .moon-calendar-day-cell {
  min-height: 60px;
  padding: 0.25rem;
}

.moon-calendar-compact .moon-calendar-day-number {
  font-size: 12px;
}

.moon-calendar-compact .moon-calendar-moon-phase svg {
  width: 30px !important;
  height: 30px !important;
}

.moon-calendar-compact .moon-calendar-phase-name,
.moon-calendar-compact .moon-calendar-percentage {
  font-size: 8px;
}

/* Loading and error states */
.moon-calendar-loading {
  text-align: center;
  padding: 2rem;
  font-size: 16px;
  opacity: 0.7;
}

.moon-calendar-error {
  text-align: center;
  padding: 2rem;
  color: #e74c3c;
  font-size: 16px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .moon-calendar-container {
    margin: 10px;
    padding: 0.75rem;
  }
  
  .moon-calendar-title {
    font-size: 20px;
  }
  
  .moon-calendar-day-cell {
    min-height: 70px;
    padding: 0.25rem;
  }
  
  .moon-calendar-day-number {
    font-size: 12px;
  }
  
  .moon-calendar-moon-phase svg {
    width: 35px !important;
    height: 35px !important;
  }
  
  .moon-calendar-phase-name,
  .moon-calendar-percentage {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .moon-calendar-container {
    margin: 5px;
    padding: 0.5rem;
  }
  
  .moon-calendar-day-cell {
    min-height: 50px;
    padding: 0.2rem;
  }
  
  .moon-calendar-compact .moon-calendar-day-cell {
    min-height: 40px;
  }
  
  .moon-calendar-moon-phase svg {
    width: 25px !important;
    height: 25px !important;
  }
  
  .moon-calendar-compact .moon-calendar-moon-phase svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Animation for moon phases when loading */
@keyframes moon-phase-fade-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.moon-calendar-moon-phase svg {
  animation: moon-phase-fade-in 0.3s ease-out;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .moon-calendar-day-cell,
  .moon-calendar-moon-phase svg {
    transition: none !important;
    animation: none !important;
  }
  
  .moon-calendar-day-cell:hover {
    transform: none !important;
  }
}

/* Focus styles for accessibility */
.moon-calendar-day-cell:focus {
  outline: 2px solid rgba(255, 215, 0, 0.8);
  outline-offset: 2px;
}

/* Debug information styles */
.ad-debug-info {
  background: #f1f1f1;
  padding: 10px;
  margin: 10px 0;
  font-family: monospace;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
}