/* Alexus Courses — Calendar styles (v1.9.6.2) */
:root {
  --echo-accent: #f66600;
  --echo-border: #e5e7eb;
  --echo-muted: #8f98a3;
}
.alx-cal {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--echo-border);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07), 0 6px 6px rgba(0, 0, 0, 0.05);
}
.alx-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.alx-cal__title {
  font-size: 20px;
  font-weight: 700;
}
.alx-cal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--echo-border);
  text-decoration: none;
  color: #111;
}
.alx-cal__nav:hover {
  background: #fafafa;
}
.alx-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.alx-cal__grid--head {
  margin-bottom: 6px;
}
.alx-cal__cell {
  min-height: 130px;
  background: #fff;
  border: 1px solid var(--echo-border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.alx-cal__cell--head {
  min-height: unset;
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--echo-muted);
}
.alx-cal__cell--empty {
  background: transparent;
  border: none;
}
.alx-cal__day {
  font-size: 12px;
  color: #9aa1aa;
}
.alx-cal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.alx-cal__item {
  display: block;
  font-size: 12px;
}
.alx-cal__dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--echo-accent);
  opacity: 0.9;
  margin-top: 4px;
}
.alx-cal__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.alx-cal__title {
  font-size: 12px;
  line-height: 1.25;
  color: #d83a3a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.alx-cal__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.alx-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  color: #fff;
}
.alx-tag--cat {
  background: linear-gradient(135deg, var(--echo-accent), #ff9340);
}
.alx-tag--type {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.alx-cal__list--clamped {
  max-height: 64px;
  overflow: hidden;
}
.alx-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.alx-more summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  color: #2563eb;
  user-select: none;
}
.alx-more summary::-webkit-details-marker {
  display: none;
}
.alx-more__chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #f4f8ff;
  font-size: 11px;
  color: #2563eb;
}
.alx-more__panel {
  margin-top: 6px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 900px) {
  .alx-cal__cell {
    min-height: 110px;
  }
  .alx-cal__title {
    font-size: 12px;
  }
  .alx-cal__title {
    font-size: 12px;
  }
}

/* 1.9.6.3 tweaks */
.alx-cal__badges .alx-tag {
  font-size: 10px;
  padding: 2px 6px;
  opacity: 0.95;
}
.alx-cal__badges .alx-tag + .alx-tag {
  margin-left: 4px;
}
.alx-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 360px;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.alx-tooltip__title {
  font-weight: 700;
  margin: 0 0 4px 0;
}
.alx-tooltip__meta {
  opacity: 0.8;
}

/* === Alexus Courses — calendar responsive tweaks (2025-08-19) === */
@media (max-width: 860px){
  .alx-cal__title{ font-size:18px; }
  .alx-cal__nav .echo-btn{ padding:8px 12px; }
}
@media (max-width: 680px){
  /* Hide grid header, shrink cells, switch to list for readability */
  .alx-cal__grid--head{ display:none !important; }
  .alx-cal__grid{ display:none !important; }
  .alx-cal__list{ display:block !important; }
  .alx-cal__item{ display:flex; align-items:flex-start; gap:10px; padding:12px; border-bottom:1px solid var(--echo-border, #e5e7eb); }
  .alx-cal__day{ min-width:52px; font-weight:700; text-align:center; }
  .alx-cal__content{ flex:1; }
  .alx-cal__badges{ flex-wrap:wrap; gap:6px; }
}
@media (max-width: 420px){
  .alx-cal__title{ font-size:16px; }
  .alx-cal__day{ min-width:44px; }
}

/* === Global: remove link underlines inside plugin areas === */
.echo-wrap a,
.echo-section a,
.echo-card a,
.echo-hero a,
.echo-breadcrumbs a,
.alx-cal a {
  text-decoration: none !important;
}
.echo-wrap a:hover,
.echo-section a:hover,
.echo-card a:hover,
.echo-hero a:hover,
.echo-breadcrumbs a:hover,
.alx-cal a:hover {
  text-decoration: none !important;
}
