/* ═══════════════════════════════════════════════════════════════════
   ANUL LITURGIC - CATHOLIC LITURGICAL CALENDAR STYLING
   ═══════════════════════════════════════════════════════════════════
   Custom CSS for the liturgical calendar wheel component
   Includes animations, badges, compact bar, and responsive layouts
   ═══════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────
   ANIMATIONS
   ─────────────────────────────────────────────────────────────────── */

/* Animations */
@-webkit-keyframes al-needlePulse {
  0% {
    opacity: 1;
    -webkit-filter: drop-shadow(0 0 2px rgba(192, 57, 43, 0.8));
    filter: drop-shadow(0 0 2px rgba(192, 57, 43, 0.8));
  }
  50% {
    opacity: 0.7;
    -webkit-filter: drop-shadow(0 0 10px rgba(192, 57, 43, 1));
    filter: drop-shadow(0 0 10px rgba(192, 57, 43, 1));
  }
  100% {
    opacity: 1;
    -webkit-filter: drop-shadow(0 0 2px rgba(192, 57, 43, 0.8));
    filter: drop-shadow(0 0 2px rgba(192, 57, 43, 0.8));
  }
}

@keyframes al-needlePulse {
  0% {
    opacity: 1;
    -webkit-filter: drop-shadow(0 0 2px rgba(192, 57, 43, 0.8));
    filter: drop-shadow(0 0 2px rgba(192, 57, 43, 0.8));
  }
  50% {
    opacity: 0.7;
    -webkit-filter: drop-shadow(0 0 10px rgba(192, 57, 43, 1));
    filter: drop-shadow(0 0 10px rgba(192, 57, 43, 1));
  }
  100% {
    opacity: 1;
    -webkit-filter: drop-shadow(0 0 2px rgba(192, 57, 43, 0.8));
    filter: drop-shadow(0 0 2px rgba(192, 57, 43, 0.8));
  }
}

@-webkit-keyframes al-pulseRing {
  0% {
    r: 8;
    stroke-opacity: 0.8;
  }
  50% {
    r: 14;
    stroke-opacity: 0.3;
  }
  100% {
    r: 8;
    stroke-opacity: 0.8;
  }
}

@keyframes al-pulseRing {
  0% {
    r: 8;
    stroke-opacity: 0.8;
  }
  50% {
    r: 14;
    stroke-opacity: 0.3;
  }
  100% {
    r: 8;
    stroke-opacity: 0.8;
  }
}

@-webkit-keyframes al-centerPulse {
  0% {
    r: 4;
    fill-opacity: 1;
  }
  50% {
    r: 6;
    fill-opacity: 0.6;
  }
  100% {
    r: 4;
    fill-opacity: 1;
  }
}

@keyframes al-centerPulse {
  0% {
    r: 4;
    fill-opacity: 1;
  }
  50% {
    r: 6;
    fill-opacity: 0.6;
  }
  100% {
    r: 4;
    fill-opacity: 1;
  }
}

/* ───────────────────────────────────────────────────────────────────
   BADGE STYLING
   ─────────────────────────────────────────────────────────────────── */

/* Badge Styling */
.al-badge {
  display: inline-block;
  padding: 7px 14px;
  margin: 0 5px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Caudex', serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  border: none;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.al-badge-holy {
  background: -webkit-gradient(linear, left bottom, right top, from(#C0392B), to(#A93226));
  background: -o-linear-gradient(bottom left, #C0392B 0%, #A93226 100%);
  background: linear-gradient(135deg, #C0392B 0%, #A93226 100%);
  color: #fff;
}

.al-badge-holy:hover {
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.al-badge-feast {
  background: transparent;
  color: #999;
  border: none;
  font-size: 11px;
  font-style: italic;
  padding: 7px 14px;
  padding-left: 0;
  margin: 0 5px;
  margin-left: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.al-feast-days {
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 5px;
  -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.al-feast-days:hover {
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

/* ───────────────────────────────────────────────────────────────────
   COMPACT BAR LAYOUT
   ─────────────────────────────────────────────────────────────────── */

/* Compact Bar Styling */
#al-bar-wrap {
  border-top: 1px solid #e0c8c8;
  margin-top: 14px;
  background: #fff;
  border-radius: 6px;
}

#al-compact-bar {
  padding: 12px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #e0c8c8;
  -webkit-transition: background 0.2s;
  -o-transition: background 0.2s;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#al-compact-bar:hover {
  background: #fdf5f5;
}

#al-compact-bar:hover .al-chevron {
  color: #BB2649;
}

.al-compact-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  gap: 10px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 4px 0;
  margin: 0 -5px;
}

.al-compact-season,
.al-compact-feast {
  margin: 0 5px;
}

.al-chevron {
  font-size: 14px;
  color: #a82141;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  -webkit-transform-origin: center;
  -ms-transform-origin: center;
  transform-origin: center;
  padding: 0;
  margin: 0;
  font-weight: 700;
}

.al-compact-season {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fdf5f5;
  border-radius: 4px;
  border-left: 3px solid #a82141;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.al-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.al-season-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2px;
}

.al-label {
  font-family: 'Caudex', serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
}

.al-season-label {
  font-family: 'Caudex', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #371B0D !important;
}

.al-vestment {
  font-size: 12px;
  color: #888;
  font-style: italic;
  font-family: 'Caudex', serif;
}

.al-compact-feast {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 8px 12px;
  background: #fdf5f5;
  border-radius: 4px;
  min-width: 0;
}

.al-feast-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.al-feast-label {
  font-family: 'Caudex', serif;
  font-size: 15px;
  color: #371B0D;
  line-height: 1.2;
  font-weight: 700;
}

.al-feast-label-meta {
  font-size: 13px;
  font-style: italic;
  font-weight: normal;
  color: #888;
}

.al-feast-date-compact {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  display: block;
}

.al-feast-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* ───────────────────────────────────────────────────────────────────
   EXPANDED WHEEL VIEW
   ─────────────────────────────────────────────────────────────────── */

/* Expanded wheel cards */
#al-wheel-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.5s ease, opacity 0.4s ease;
  -o-transition: max-height 0.5s ease, opacity 0.4s ease;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

#al-svg-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.al-cards-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 12px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.al-card {
  background: #fdf5f5;
  border: 1px solid #e8d0d0;
  border-left: 3px solid #a82141;
  border-radius: 6px;
  padding: 14px;
  font-family: 'Caudex', serif;
}

.al-card-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.al-season-name {
  font-size: 17px;
  margin-bottom: 5px;
  color: var(--al-color, #371B0D);
}

.al-season-desc {
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  color: #7A6640;
}

.al-feast-countdown {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 5px;
  color: var(--al-color, #a82141);
}

.al-feast-name {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
  color: var(--al-color, #371B0D);
}

.al-feast-grade {
  font-size: 12px;
  color: #371B0D;
  font-style: italic;
}

.al-feast-date {
  font-size: 12px;
  color: #3A2E10;
  margin-top: 3px;
}

.al-expand-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  cursor: pointer;
}

.al-expand-text {
  font-family: 'Caudex', serif;
  font-size: 13px;
  color: #a82141;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ───────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ─────────────────────────────────────────────────────────────────── */

/* Responsive */
@media (max-width: 768px) {
  .al-compact-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin: 0;
  }
  
  .al-compact-season,
  .al-compact-feast {
    width: 100%;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    margin: 5px 0;
    box-sizing: border-box;
  }
  
  .al-cards-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  
  #al-svg-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .al-feast-label {
    font-size: 14px;
  }
  
  .al-season-label {
    font-size: 14px;
  }
  
  .al-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .al-compact-season,
  .al-compact-feast {
    padding: 10px;
  }
}
