/* /css/ps-events.css - Kalendar događaja / Events Calendar */

.ps-events {
  --ps-month-color: #777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}

.ps-events *,
.ps-events *::before,
.ps-events *::after {
  box-sizing: border-box;
}

.ps-events [hidden] {
  display: none !important;
}

/* Heading
--------------------------------------------- */
.ps-events__title {
  margin: 0 0 10px;
  padding: 0 0 6px;
  border-bottom: 2px solid #ddd;
  font-family: "Caudex", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}

.ps-events__note {
  margin: 0 0 10px;
  padding: 6px 9px;
  border-left: 3px solid #e0952c;
  background: #fff8e8;
  font-size: 11px;
  font-style: italic;
  color: #8a6413;
}

.ps-events__empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #ddd;
  background: #fafafa;
  font-style: italic;
  color: #888;
  text-align: center;
}

/* Month block
--------------------------------------------- */
.ps-ev-month {
  margin: 0 0 12px;
}

.ps-ev-month:last-child {
  margin-bottom: 0;
}

.ps-ev-month__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 6px 6px 0 0;
  background: var(--ps-month-color);
}

.ps-ev-month__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

/* Shown only when the month is not in the current year. */
.ps-ev-month__year {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: 1px;
  text-shadow: none;
}

.ps-ev-month__icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.ps-ev-month__body {
  padding: 4px 0;
  border: 1px solid #e6e0d2;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fdfaf2;
  background: color-mix(in srgb, var(--ps-month-color) 6%, #fffdf7);
}

/* Date row
--------------------------------------------- */
.ps-ev-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
}

.ps-ev-row + .ps-ev-row {
  border-top: 1px dashed rgba(0, 0, 0, 0.11);
}

.ps-ev-row__date {
  flex: 0 0 auto;
  min-width: 46px;
  padding-top: 1px;
  text-align: right;
}

.ps-ev-row__day {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ps-month-color);
  white-space: nowrap;
}

.ps-ev-row__tag {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #d0342c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: #fff;
}

.ps-ev-row__tag.is-soft {
  background: #8a8a8a;
}

.ps-ev-row.is-today {
  background: rgba(208, 52, 44, 0.05);
}

.ps-ev-row__items {
  flex: 1 1 auto;
  min-width: 0;
}

/* Single event
--------------------------------------------- */
.ps-ev-item + .ps-ev-item {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dotted rgba(0, 0, 0, 0.1);
}

.ps-ev-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.ps-ev-item__time {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.ps-ev-item__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
}

a.ps-ev-item__title:hover,
a.ps-ev-item__title:focus {
  color: var(--ps-month-color);
  text-decoration: underline;
}

a.ps-ev-item__title::after {
  content: " ›";
  font-weight: 400;
  color: var(--ps-month-color);
}

.ps-ev-item__loc {
  margin-top: 2px;
  font-size: 11.5px;
  color: #7a7a7a;
}

.ps-ev-item__loc::before {
  content: "📍 ";
}

.ps-ev-item__desc {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #5c5c5c;
}

/* Highlighted event */
.ps-ev-item.is-highlight {
  padding: 6px 9px;
  border-left: 3px solid #e0a12c;
  border-radius: 0 4px 4px 0;
  background: rgba(224, 161, 44, 0.1);
}

.ps-ev-item.is-highlight + .ps-ev-item,
.ps-ev-item + .ps-ev-item.is-highlight {
  margin-top: 8px;
}

.ps-ev-item.is-highlight .ps-ev-item__title {
  color: #8a5a06;
}

/* Sub-items of a multi-day event
--------------------------------------------- */
.ps-ev-sub {
  margin: 6px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  list-style: none;
}

.ps-ev-sub__item {
  position: relative;
  margin: 0 0 4px;
  padding: 0 0 0 11px;
  font-size: 12px;
  line-height: 1.4;
}

.ps-ev-sub__item:last-child {
  margin-bottom: 0;
}

.ps-ev-sub__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ps-month-color);
  opacity: 0.65;
}

.ps-ev-sub__date {
  font-weight: 700;
  color: var(--ps-month-color);
  font-variant-numeric: tabular-nums;
}

.ps-ev-sub__time {
  margin-left: 4px;
  font-weight: 700;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.ps-ev-sub__title {
  margin-left: 4px;
  color: #333;
  text-decoration: none;
}

a.ps-ev-sub__title:hover,
a.ps-ev-sub__title:focus {
  color: var(--ps-month-color);
  text-decoration: underline;
}

.ps-ev-sub__loc {
  margin-left: 5px;
  font-size: 11px;
  color: #8a8a8a;
}

.ps-ev-sub__item.is-highlight .ps-ev-sub__title {
  font-weight: 700;
  color: #8a5a06;
}

/* Show more / less
--------------------------------------------- */
.ps-events__more {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f5f5f5;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ps-events__more:hover,
.ps-events__more:focus {
  border-color: #c9c9c9;
  background: #ececec;
}

.ps-events__more-label::before {
  content: "▼ ";
  font-size: 10px;
}

.ps-events__more.is-expanded .ps-events__more-label::before {
  content: "▲ ";
}

/* Mobile
--------------------------------------------- */
@media (max-width: 979px) {
  .ps-events {
    font-size: 14px;
  }

  .ps-ev-row {
    padding: 9px 10px;
    gap: 9px;
  }

  .ps-ev-row__date {
    min-width: 42px;
  }

  .ps-ev-row__day {
    font-size: 16px;
  }

  .ps-ev-item__title {
    font-size: 14px;
  }

  .ps-events__more {
    padding: 11px 12px;
    font-size: 13.5px;
  }
}
