:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.1);
  --secondary-color: #ec4899;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ==========================================
   AUTH PAGES (Login / Register / Admin Login)
   ========================================== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  padding: 1rem;
}

.auth-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.5s ease-out;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--card-bg);
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
  color: #94a3b8;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-family: inherit;
  gap: 0.375rem;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.btn-full {
  width: 100%;
}

.auth-card .btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.auth-toggle a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* ==========================================
   DASHBOARD - HEADER
   ========================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.header h1 {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.btn-logout {
  background: none;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-logout:hover {
  background: var(--danger);
  color: white;
}

/* ==========================================
   DASHBOARD - MAIN LAYOUT
   ========================================== */
.main-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.sidebar, .calendar-area {
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

/* ==========================================
   AUTHOR LIST
   ========================================== */
.author-list {
  list-style: none;
  max-height: 500px;
  overflow-y: auto;
  margin-top: 0.75rem;
}

.author-item {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border-color);
  margin-bottom: 0.375rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.author-item:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.author-item.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ==========================================
   CALENDAR
   ========================================== */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.calendar-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.calendar-header .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.375rem;
}

.day-name {
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 0.375rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0.375rem;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  font-size: 0.85rem;
  position: relative;
  border: 1px solid transparent;
  overflow: hidden;
}

.day-cell:hover:not(.booked):not(.empty):not(.past) {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.03);
}

.day-cell.empty {
  background-color: transparent;
  border: none;
  cursor: default;
}

.day-cell.past {
  background-color: #f1f5f9;
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
}

.day-cell.booked {
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  color: white;
  cursor: default;
  border: none;
}

.booked-badge {
  font-size: 0.55rem;
  line-height: 1.3;
  text-align: center;
  padding: 2px 3px;
  margin-top: 1px;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
}

/* Aynı güne birden fazla etkinlik: her biri ince bir çizgiyle ayrılır */
.booked-badge.compact + .booked-badge.compact {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 3px;
}

/* ==========================================
   SAAT ARALIĞI VE GÜNÜN DOLU SAATLERİ
   ========================================== */
.time-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.day-events-box {
  display: none;
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-dark);
}

.day-events-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.day-events-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.day-events-list li {
  padding: 0.4rem 0;
  line-height: 1.4;
}

.day-events-list li + li {
  border-top: 1px dashed rgba(99, 102, 241, 0.3);
}

.day-events-list small {
  color: var(--text-light);
}

.day-events-warn {
  color: #b45309;
  font-weight: 600;
}

p.day-events-warn {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
}

.day-events-edit {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ==========================================
   MODALS
   ========================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background-color: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease-out;
  box-shadow: var(--shadow-lg);
}

.modal-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

.close-modal {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: color 0.15s;
}

.close-modal:hover {
  color: var(--danger);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================
   YAZAR TAKVİMİ SAYFASI
   ========================================== */
.yazar-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.yazar-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.yazar-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.375rem;
}

.yazar-header p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ==========================================
   ADMIN TABLE
   ========================================== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.admin-table tr:hover {
  background-color: var(--bg-color);
}

.admin-table td {
  vertical-align: middle;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.badge-edited {
  background: var(--secondary-color);
}

.action-btn {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ==========================================
   ADMIN SECTION CARDS
   ========================================== */
.admin-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.admin-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.admin-section p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem;
  }

  /* Header */
  .header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1rem;
  }

  .header h1 {
    font-size: 1.1rem;
  }

  .user-info {
    justify-content: center;
    gap: 0.5rem;
  }

  .user-info span {
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }

  /* Main layout */
  .main-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sidebar {
    padding: 1rem;
  }

  .sidebar h3 {
    font-size: 0.95rem;
  }

  .author-list {
    max-height: 180px;
    overflow-y: auto;
  }

  .author-item {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  /* Calendar */
  .calendar-area {
    padding: 1rem;
  }

  .calendar-header {
    gap: 0.25rem;
  }

  .calendar-header h2 {
    font-size: 0.95rem;
  }

  .calendar-header .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }

  .calendar-grid {
    gap: 0.2rem;
  }

  .day-name {
    font-size: 0.65rem;
    padding: 0.25rem 0;
  }

  .day-cell {
    font-size: 0.7rem;
    padding-top: 0.25rem;
    border-radius: 0.25rem;
  }

  .booked-badge {
    font-size: 0.45rem;
    padding: 1px 2px;
    line-height: 1.2;
  }

  /* Auth pages */
  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .auth-card h2 {
    font-size: 1.3rem;
  }

  /* Modals */
  .modal-content {
    padding: 1.5rem 1.25rem;
    margin: 0.5rem;
    max-width: 100%;
  }

  /* Admin tables */
  .admin-table th,
  .admin-table td {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .action-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
  }

  /* Yazar sayfası */
  .yazar-container {
    padding: 1rem 0.75rem;
  }

  .yazar-header h1 {
    font-size: 1.1rem;
  }
}

/* Extra small screens */
@media (max-width: 420px) {
  .day-cell {
    aspect-ratio: auto;
    min-height: 48px;
  }

  .booked-badge {
    font-size: 0.4rem;
  }

  .calendar-header .btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.65rem;
  }

  .calendar-header h2 {
    font-size: 0.85rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================
   TAKVİM: TÜM YAZARLAR GÖRÜNÜMÜ (11.11.2026)
   Yalnız dashboard.php kullanır. yazar.html de bu dosyayı
   kullandığı için yukarıdaki .day-cell / .booked / .booked-badge
   kurallarına dokunulmadı; burada yalnız yeni sınıflar var.
   ========================================== */
.author-item.all-authors {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  line-height: inherit;
  font-weight: 700;
  background: var(--card-bg);
  margin-bottom: 0.75rem;
}

.author-item.all-authors.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

#authorList .author-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.author-item:focus-visible,
.legend-chip:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Yazar listesi kaydırılabilir kutu: halka dışarı taşarsa kesilir, içeri çizilir */
#authorList .author-item:focus-visible {
  outline-offset: -4px;
}

#authorList .author-item.active:focus-visible {
  outline-color: white;
}

.author-count {
  flex-shrink: 0;
  min-width: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--c, var(--primary-color));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}

.author-count[hidden] {
  display: none;
}

.author-item.active .author-count {
  box-shadow: 0 0 0 2px white;
}

.month-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  min-height: 1.75rem;
}

.legend-info {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-right: 0.25rem;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.legend-chip:hover {
  border-color: var(--c, var(--primary-color));
}

.legend-chip.active {
  border-color: var(--c, var(--primary-color));
  background: var(--primary-light);
}

.legend-chip.legend-all {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.legend-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--c, var(--primary-color));
}

.calendar-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

.calendar-message.error {
  color: #991b1b;
  font-weight: 600;
}

#calendarGrid.is-loading .day-cell {
  opacity: 0.45;
}

#calendarGrid .day-cell.today {
  outline: 2px solid var(--secondary-color);
  outline-offset: -2px;
}

/* Bundan sonraki .dash-calendar kuralları yalnız dashboard.php takvimine uygulanır
   (yazar.html de #calendarGrid, .past ve .booked kullanıyor) */

/* Mor (dolu) gün bugünse pembe halka görünmez: beyaz */
#calendarGrid.dash-calendar .day-cell.today.booked {
  outline-color: white;
  outline-offset: -3px;
}

/* Geçmiş ama etkinliği olan gün tıklanıp görüntülenebiliyor: soluklaştırma (opacity) yazıları
   okunmaz yapmasın; geçmiş olduğu soluk zemin ve az doygun etiketlerle belli olur */
#calendarGrid.dash-calendar .day-cell.past.has-events,
#calendarGrid.dash-calendar .day-cell.past.booked {
  opacity: 1;
}

#calendarGrid.dash-calendar .day-cell.past.has-events {
  background: var(--bg-color);
  color: var(--text-light);
}

#calendarGrid.dash-calendar .day-cell.past .ov-badge,
#calendarGrid.dash-calendar .day-cell.past.booked {
  filter: saturate(0.55);
}

/* Klavyeyle seçilen gün */
#calendarGrid.dash-calendar .day-cell[role="button"]:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: -3px;
}

#calendarGrid.dash-calendar .day-cell.booked[role="button"]:focus-visible {
  outline: 3px dashed white;
}

/* Pencereler: kapatma düğmesi gerçek düğme; pencere kutusu odak alınca çerçeve çizilmez */
button.close-modal {
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
}

button.close-modal:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 0;
}

.modal-content[tabindex="-1"]:focus {
  outline: none;
}

/* Uzun başlık kapatma düğmesinin altına girmesin */
.modal-content[role="dialog"] h3 {
  padding-right: 1.75rem;
}

/* Genel takvim: her etkinlik yazar renginde küçük etiket */
#calendarGrid.overview .day-cell {
  aspect-ratio: auto;
  min-height: 96px;
  align-items: stretch;
  gap: 2px;
  padding: 0.3rem 0.25rem;
}

#calendarGrid.overview .day-cell .day-number {
  align-self: center;
}

#calendarGrid.overview .day-cell.has-events {
  background: var(--card-bg);
  border-color: var(--border-color);
}

#calendarGrid.overview .day-cell:hover:not(.empty):not(.past) {
  transform: none;
  border-color: var(--primary-color);
}

.ov-badge {
  background: var(--c, var(--primary-color));
  color: white;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.62rem;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
}

.ov-badge .ov-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  word-break: break-word;
}

.ov-badge .ov-initials {
  display: none;
  font-weight: 700;
}

/* Saat kesilmesin: dar hücrede "10:00–" / "12:00" diye iki satıra iner */
.ov-badge .ov-time {
  display: block;
  overflow-wrap: anywhere;
}

/* Gün ayrıntısı ve rezervasyon pencereleri */
.day-events-box.day-overview-box {
  display: block;
}

.ev-author {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
  color: var(--text-dark);
}

.day-empty {
  margin: 0;
  color: var(--text-light);
}

.day-book label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.day-book .form-control {
  margin-bottom: 0.75rem;
}

.day-past-note {
  display: none;
  font-size: 0.85rem;
  color: var(--text-light);
}

.book-author-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.book-author-name:empty {
  display: none;
}

@media (max-width: 768px) {
  #calendarGrid.overview .day-cell {
    min-height: 72px;
    padding: 0.25rem 0.15rem;
  }

  .ov-badge {
    font-size: 0.55rem;
    padding: 1px 3px;
  }

  .legend-info {
    width: 100%;
    font-size: 0.75rem;
  }

  .legend-chip {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }
}

/* Telefonda hücre çok dar: etiketlerde yazarın baş harfleri, ayrıntı dokununca */
@media (max-width: 420px) {
  #calendarGrid.overview .day-cell {
    min-height: 56px;
  }

  .ov-badge {
    position: relative;
    text-align: center;
    padding: 1px 2px;
  }

  /* Gözden gizli ama ekran okuyucuda kalır */
  .ov-badge .ov-name,
  .ov-badge .ov-time {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ov-badge .ov-initials {
    display: block;
  }
}
