/* ════════════════════════════════════════════════════════════
   SELBİS — Kurum İçi Eğitimler Sayfası Stilleri
   ════════════════════════════════════════════════════════════ */

.egitimler-main {
  padding-top: 32px;
  padding-bottom: 80px;
  max-width: 1200px;
}

/* ─── Hero Banner ─── */
.egitimler-hero {
  background: linear-gradient(135deg, #1c458b 0%, #0f2952 50%, #0a1e3d 100%);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.egitimler-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 188, 4, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.egitimler-hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.egitimler-hero-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: rgba(251, 188, 4, 0.15);
  border: 1px solid rgba(251, 188, 4, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbc04;
}

.egitimler-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.egitimler-hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  font-weight: 400;
}

/* ─── Circular Progress ─── */
.egitimler-hero-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.circular-progress {
  position: relative;
  width: 72px;
  height: 72px;
}

.circular-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 6;
}

.progress-fill {
  fill: none;
  stroke: #fbbc04;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 213.63;
  stroke-dashoffset: 213.63;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.progress-detail {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

/* ─── Search & Filter Bar ─── */
.egitimler-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.egitimler-search-wrap {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.egitimler-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.training-search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 30px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.training-search-input:focus {
  border-color: #1c458b;
  box-shadow: 0 0 0 3px rgba(28, 69, 139, 0.15);
}

/* ─── Category Tabs ─── */
.category-tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
}

.category-tab {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-tab:hover {
  border-color: #1c458b;
  color: #1c458b;
  background: #f0f4ff;
}

.category-tab.active {
  background: #1c458b;
  color: #ffffff;
  border-color: #1c458b;
}

/* ─── Training Cards Grid ─── */
.trainings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.training-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.training-card:hover {
  transform: translateY(-4px);
  border-color: #1c458b;
  box-shadow: 0 14px 30px rgba(28, 69, 139, 0.15);
}

.training-card.completed {
  border-color: #22c55e;
}

.training-card.completed::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* Card Thumbnail */
.training-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.training-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.training-thumbnail .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.training-card:hover .play-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.training-card:hover .play-btn-circle {
  transform: scale(1.1);
}

.play-btn-circle svg {
  color: #1c458b;
  margin-left: 2px;
}

.training-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.training-mandatory-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.training-completed-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Card Body */
.training-card-body {
  padding: 16px;
}

.training-card-category {
  font-size: 11px;
  font-weight: 600;
  color: #1c458b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.training-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.training-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Card Progress Bar */
.training-card-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.training-card-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1c458b, #3b82f6);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.training-card.completed .training-card-progress-fill {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* ─── Video Modal ─── */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.video-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.video-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.video-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.video-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
}

.video-modal-body {
  padding: 0;
}

.video-player-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}

.video-player-wrap iframe,
.video-player-wrap video {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-info {
  padding: 20px 24px 24px;
}

.video-modal-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
}

.video-modal-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.video-modal-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #1c458b, #3b82f6);
  width: 0;
  transition: width 0.4s ease;
}

.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-mark-complete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid #22c55e;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mark-complete:hover {
  background: #22c55e;
  color: #ffffff;
}

.btn-mark-complete.completed {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
  cursor: default;
}

/* ─── Empty State ─── */
.trainings-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.trainings-empty p {
  font-size: 14px;
  margin-top: 16px;
}

/* ─── Header Back Link ─── */
.header-back-link {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(28, 69, 139, 0.08);
  color: #1c458b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-back-link:hover {
  background: rgba(28, 69, 139, 0.15);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .egitimler-hero {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  
  .egitimler-hero-title {
    font-size: 20px;
  }
  
  .circular-progress {
    width: 56px;
    height: 56px;
  }
  
  .video-modal-overlay {
    padding: 12px;
  }
  
  .video-modal-card {
    border-radius: 16px;
  }
}
