/* ============================================
   CUSTOM GOOGLE CALENDAR — STYLES
   ============================================ */

.kole-wrap {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

@media (max-width: 700px) {
  .section-koledar .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---- NASLEDNJI DOGODKI ---- */
.kole-naslednji-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-left: 42px;
}
.kole-mesec-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-left: 42px;
}

.kole-naslednji {
  margin-bottom: 40px;
}

/* ---- CAROUSEL ---- */
.kole-carousel {
  display: flex;
  align-items: center;
}
.kole-carousel-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.kole-carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.kole-carousel-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 30px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.kole-carousel-btn:hover:not(:disabled) { color: var(--blue); }
.kole-carousel-btn:disabled { opacity: 0.2; cursor: default; }
.kole-carousel-prev { margin-right: 6px; }
.kole-carousel-next { margin-left: 6px; }

/* ---- KARTICA ---- */
.kole-card {
  display: flex;
  gap: 14px;
  background: var(--tertiary);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 18px 16px;
  align-items: flex-start;
  box-sizing: border-box;
  flex-shrink: 0;
}

.kole-card-datum {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
  padding-top: 2px;
}
.kole-card-dan {
  font-size: 28px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
}
.kole-card-mesec {
  font-size: 12px;
  font-weight: 400;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.kole-card-info {
  flex: 1;
  min-width: 0;
}
.kole-card-naslov {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kole-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.kole-vec-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
}
.kole-vec-btn:hover { text-decoration: underline; }

/* ---- GRID MESEC ---- */
.kole-mesec-wrap {
  background: #fff;
  border-radius: 12px;
  border: none;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  margin: 0 42px;
}

.kole-mesec-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.kole-mesec-nav h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 700px) {
  .kole-mesec-nav h3 { font-size: 13px; }
  .kole-title-desktop { display: none; }
}
@media (min-width: 701px) {
  .kole-title-mobile { display: none; }
}
.kole-nav-group {
  display: flex;
  gap: 2px;
}
.kole-nav-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.kole-nav-btn:hover { background: var(--bg-hero); color: var(--text); }
.kole-danes-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.kole-danes-btn:hover { background: var(--bg-hero); }

/* Grid */
.kole-grid-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--tertiary);
}
.kole-grid-hdr {
  padding: 10px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kole-grid-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.kole-grid-cell {
  min-height: 110px;
  height: auto;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 6px 6px;
  background: #fff;
  position: relative;
  transition: background 0.2s;
  overflow: hidden;
}
.kole-grid-cell:nth-child(7n) { border-right: none; }
.kole-grid-body .kole-grid-cell:nth-last-child(-n+7) { border-bottom: none; }

.kole-grid-cell--out { background: #faf9f7; }

.kole-grid-cell--danes { background: var(--secondary-light); }
.kole-grid-cell--danes .kole-grid-dan { color: var(--secondary); font-weight: 800; }

.kole-grid-cell--highlight {
  background: #FFF7ED;
  outline: 2px solid var(--secondary);
  outline-offset: -2px;
  z-index: 1;
}

.kole-grid-dan {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}

.kole-grid-eventi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kole-event-pill {
  display: block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  max-width: 100%;
  cursor: pointer;
  transition: opacity 0.15s;
  overflow: hidden;
}
.kole-event-pill:hover { opacity: 0.75; }
.kole-event-pill-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.kole-event-pill-cas {
  display: block;
  font-size: 9px;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.4;
}

.kole-event-more {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  padding-left: 2px;
  cursor: pointer;
}
.kole-event-more:hover { color: var(--blue); }

/* ---- POPUP ---- */
.kole-popup {
  position: absolute;
  width: 360px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
  z-index: 90;
  overflow: hidden;
}

@media (max-width: 700px) {
  .kole-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 24px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}
.kole-popup-header {
  display: flex;
  justify-content: flex-end;
  padding: 8px 8px 0;
  background: #fff;
}
.kole-popup-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.kole-popup-close:hover { background: var(--bg-hero); color: var(--text); }

.kole-popup-body {
  padding: 4px 20px 20px;
}
.kole-popup-naslov {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.35;
}
.kole-popup-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.kole-popup-icon {
  flex-shrink: 0;
  color: var(--secondary);
  margin-top: 1px;
  display: flex;
}
.kole-popup-datum {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.kole-popup-cas {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.kole-popup-lokacija {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.kole-popup-opis {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.kole-popup-opis p {
  margin: 0 0 10px;
}
.kole-popup-opis p:last-child {
  margin-bottom: 0;
}
.kole-popup-opis ul, .kole-popup-opis .opis-bullets {
  padding-left: 18px;
  margin: 4px 0;
}
.kole-popup-opis ul li, .kole-popup-opis .opis-bullets li {
  list-style: none;
  padding-left: 14px;
  position: relative;
  margin-bottom: 2px;
}
.kole-popup-opis ul li::before, .kole-popup-opis .opis-bullets li::before {
  content: '•';
  color: var(--secondary);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.kole-popup-cal-name {
  font-size: 13px;
  color: var(--text);
}
.kole-popup-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.kole-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.kole-popup-link:hover { color: var(--blue); }

/* ---- MISC ---- */
.kole-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 16px 0;
}

/* ---- LIST VIEW (mobile) ---- */
.kole-list {
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.kole-list-mesec-sep {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 10px 16px 6px;
  background: var(--tertiary);
  border-bottom: 1px solid var(--border);
}

.kole-list-row {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.kole-list-row:last-child { border-bottom: none; }
.kole-list-row--danes { background: var(--secondary-light); }
.kole-list-row--highlight {
  background: #FFF7ED;
  outline: 2px solid var(--secondary);
  outline-offset: -2px;
}

.kole-list-datum {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
  flex-shrink: 0;
  padding-top: 2px;
}
.kole-list-dan-ime {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 3px;
}
.kole-list-dan-st {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}
.kole-list-dan-st--danes {
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.kole-list-eventi {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}
.kole-list-ev {
  border-left: 3px solid;
  padding: 3px 8px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.kole-list-ev:hover { opacity: 0.65; }
.kole-list-ev-naslov {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.kole-list-ev-cas {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.kole-list-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .kole-naslednji-title,
  .kole-mesec-title { margin-left: 0; }
  .kole-mesec-wrap { margin: 0; }
}

@media (max-width: 600px) {
  .kole-carousel-btn { width: 28px; font-size: 22px; }
  .kole-wrap { padding: 0 16px; }
}
