/* ==================== HAFTALIK TAKVİM GÖRÜNÜMÜ STİLLERİ ==================== */

.weekly-calendar {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 16px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.weekly-calendar::-webkit-scrollbar {
  width: 8px;
}

.weekly-calendar::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.weekly-calendar::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

.calendar-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.calendar-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.calendar-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #666;
}

.calendar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* İstatistik Kartları */
.calendar-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.stat-card .stat-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.stat-card .stat-content {
  flex: 1;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-card .progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-card .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Takvim Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.calendar-day {
  background: white;
  border-radius: 12px;
  padding: 16px;
  min-height: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.calendar-day.inactive {
  background: #f5f5f5;
  opacity: 0.6;
}

.calendar-day.today {
  border: 2px solid #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.calendar-day.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Gün Başlığı */
.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.day-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.today-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Zaman Slotları */
.time-slot {
  background: linear-gradient(135deg, #667eea08, #764ba208);
  border: 1px solid #e0e0e0;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.time-slot:hover {
  background: linear-gradient(135deg, #667eea15, #764ba215);
  border-left-color: #764ba2;
  transform: translateX(4px);
}

.time-slot.completed {
  background: linear-gradient(135deg, #4CAF5008, #4CAF5015);
  border-left-color: #4CAF50;
  opacity: 0.7;
}

.time-slot.completed .slot-topic {
  text-decoration: line-through;
  color: #999;
}

.slot-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 6px;
}

.slot-time .separator {
  color: #999;
}

.slot-topic {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.slot-duration {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.slot-resource {
  display: inline-block;
  font-size: 12px;
  color: #667eea;
  text-decoration: none;
  padding: 4px 8px;
  background: white;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.slot-resource:hover {
  background: #667eea;
  color: white;
}

.slot-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
  cursor: pointer;
  margin-top: 8px;
}

.slot-checkbox input[type="checkbox"] {
  cursor: pointer;
  accent-color: #667eea;
}

/* Dinlenme Günü */
.rest-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  font-size: 14px;
  color: #999;
  font-weight: 500;
}

/* Responsive Tasarım */
@media (max-width: 1400px) {
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-stats {
    grid-template-columns: 1fr;
  }

  .weekly-calendar {
    padding: 12px;
  }

  .calendar-day {
    padding: 12px;
  }
}

/* Scroll animasyonu */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-day {
  animation: slideInUp 0.4s ease;
}

.calendar-day:nth-child(1) { animation-delay: 0s; }
.calendar-day:nth-child(2) { animation-delay: 0.05s; }
.calendar-day:nth-child(3) { animation-delay: 0.1s; }
.calendar-day:nth-child(4) { animation-delay: 0.15s; }
.calendar-day:nth-child(5) { animation-delay: 0.2s; }
.calendar-day:nth-child(6) { animation-delay: 0.25s; }
.calendar-day:nth-child(7) { animation-delay: 0.3s; }
