/* ============= TAKVİM =============
   Sayfa: js/pages/calendar.js
   Tema token'ları (--card, --border, --text-muted, --brand, --danger vs.)
   diğer sayfalardaki gibi orbital/base'ten geliyor. Buraya yeni token
   tanımlamıyoruz — tema geçişleri (dark/light/girls) böylece kırılmaz.
*/

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.cal-toolbar-left { display: flex; flex-direction: column; gap: 2px; }
.cal-toolbar-title { font-size: 14px; font-weight: 600; }
.cal-toolbar-sub { font-size: 11px; color: var(--text-muted); }

.cal-section { margin-top: 20px; }
.cal-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.cal-section-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}
.cal-section-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--card-alt, rgba(255, 255, 255, 0.04));
  padding: 2px 8px;
  border-radius: 10px;
}

.cal-list { display: flex; flex-direction: column; gap: 8px; }

.cal-card {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.cal-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand, #4f7cff);
}
.cal-card.is-past { opacity: 0.65; }
.cal-card.is-past:hover { opacity: 0.9; }

.cal-card-when {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding-right: 14px;
  border-right: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.cal-day {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand, #4f7cff);
  text-transform: capitalize;
}
.cal-time { font-size: 16px; font-weight: 600; }
.cal-dur { font-size: 10px; color: var(--text-muted); }

.cal-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cal-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #fff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-card-notes {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cal-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cal-attendees { font-size: 11px; color: var(--text-muted); }
.cal-link-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--card-alt, rgba(79, 124, 255, 0.12));
  color: var(--brand, #4f7cff);
  border: 1px solid var(--brand, #4f7cff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Form grid (tarih + saat + süre yan yana) */
.form-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.form-row-grid .form-row { margin-bottom: 0; }

/* Mobil: kart dikey */
@media (max-width: 640px) {
  .cal-card { flex-direction: column; gap: 8px; }
  .cal-card-when {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding-right: 0;
    padding-bottom: 8px;
    border-right: none;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    width: 100%;
  }
}
