/**
 * Kurs Sistemi CSS Stilleri
 * Kurs yönetimi için özel stiller
 */

/* ==========================================================================
   Kurs Kartları
   ========================================================================== */

.kurs-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.kurs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.kurs-card .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.kurs-card .card-footer {
    border-top: 1px solid #dee2e6;
}

/* ==========================================================================
   Grup Kartları
   ========================================================================== */

.grup-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.grup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.grup-card .card-header {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-bottom: 1px solid #90caf9;
}

/* ==========================================================================
   Kapasite Progress Bar
   ========================================================================== */

.kapasite-progress {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #e9ecef;
}

.kapasite-progress .progress-bar {
    transition: width 0.6s ease;
}

.kapasite-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.85rem;
}

.kapasite-info .kalan {
    color: #28a745;
    font-weight: 600;
}

.kapasite-info .dolu {
    color: #dc3545;
    font-weight: 600;
}

/* ==========================================================================
   Grup Seçim Kartları (Başvuru Formu)
   ========================================================================== */

.grup-secim {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grup-secim:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.grup-secim.border-primary {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background-color: #f0f7ff;
}

.grup-secim .form-check-input {
    transform: scale(1.3);
}

/* ==========================================================================
   Zaman Program Badges
   ========================================================================== */

.zaman-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.zaman-badge .gun {
    font-weight: 600;
}

.zaman-badge .saat {
    margin-left: 5px;
    opacity: 0.9;
}

.zaman-badge .kort {
    margin-left: 5px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ==========================================================================
   Katılımcı Tablosu
   ========================================================================== */

.katilimci-table {
    font-size: 0.9rem;
}

.katilimci-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.katilimci-table tbody tr:hover {
    background-color: #f0f7ff;
}

.katilimci-table .katilimci-ad {
    font-weight: 600;
    color: #333;
}

.katilimci-table .iletisim-bilgi {
    font-size: 0.85rem;
    color: #666;
}

.katilimci-table .iletisim-bilgi i {
    width: 16px;
    color: #6c757d;
}

/* ==========================================================================
   Onay Bekleyen Badge
   ========================================================================== */

.onay-bekleyen-badge {
    position: relative;
}

.onay-bekleyen-badge::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* ==========================================================================
   Kurs Detay Sayfası
   ========================================================================== */

.kurs-detay-header {
    background: linear-gradient(135deg, var(--akdeniz-mavi), var(--akdeniz-koyu-mavi));
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.kurs-detay-header h1 {
    margin-bottom: 10px;
}

.kurs-detay-header .durum-badge {
    font-size: 1rem;
    padding: 8px 20px;
}

.kurs-bilgi-card {
    border-radius: 15px;
    overflow: hidden;
}

.kurs-bilgi-card .card-header {
    background: #f8f9fa;
    font-weight: 600;
}

.kurs-bilgi-card .list-unstyled li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.kurs-bilgi-card .list-unstyled li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Hızlı İşlem Butonları
   ========================================================================== */

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 120px;
}

.quick-action-btn:hover {
    border-color: var(--akdeniz-mavi);
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    color: var(--akdeniz-mavi);
    transform: translateY(-3px);
}

.quick-action-btn i {
    color: var(--akdeniz-mavi);
    transition: transform 0.3s ease;
}

.quick-action-btn:hover i {
    transform: scale(1.2);
}

.quick-action-btn span {
    margin-top: 10px;
    font-weight: 500;
}

/* ==========================================================================
   Animasyonlar
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

/* Kart animasyonları */
.kurs-card.fade-in-up,
.grup-card.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.kurs-card.fade-in-up,
.grup-card.fade-in-up {
    opacity: 1;
}

/* ==========================================================================
   Responsive Stilleri
   ========================================================================== */

@media (max-width: 768px) {
    .kurs-detay-header {
        padding: 20px;
        border-radius: 15px;
    }
    
    .kurs-detay-header h1 {
        font-size: 1.5rem;
    }
    
    .quick-action-btn {
        min-height: 100px;
        padding: 15px;
    }
    
    .quick-action-btn i {
        font-size: 1.5rem !important;
    }
    
    .grup-secim .card-body {
        padding: 12px;
    }
    
    .zaman-badge {
        display: block;
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .btn-group.w-100 .btn {
        padding: 6px;
        font-size: 0.8rem;
    }
    
    .katilimci-table {
        font-size: 0.8rem;
    }
    
    .katilimci-table .btn-group-sm .btn {
        padding: 4px 6px;
    }
}

/* ==========================================================================
   Dark Mode Desteği
   ========================================================================== */

[data-theme="dark"] .kurs-card,
[data-theme="dark"] .grup-card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .kurs-card .card-header,
[data-theme="dark"] .grup-card .card-header {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-color: #4a5568;
}

[data-theme="dark"] .grup-secim {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .grup-secim:hover,
[data-theme="dark"] .grup-secim.border-primary {
    background: #2c5282;
}

[data-theme="dark"] .zaman-badge {
    background: #2c5282;
    border-color: #4299e1;
    color: #bee3f8;
}

[data-theme="dark"] .quick-action-btn {
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .quick-action-btn:hover {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-color: #4299e1;
}

/* ==========================================================================
   Print Stilleri
   ========================================================================== */

@media print {
    .kurs-card,
    .grup-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .quick-action-btn,
    .btn-group {
        display: none !important;
    }
    
    .kurs-detay-header {
        background: white !important;
        color: black !important;
        border: 2px solid #000;
    }
}

/* ==========================================================================
   Erişilebilirlik
   ========================================================================== */

.kurs-card:focus-within,
.grup-card:focus-within {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.grup-secim:focus-within {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .kurs-card,
    .grup-card,
    .quick-action-btn,
    .grup-secim {
        transition: none !important;
    }
    
    .fade-in-up,
    .slide-in-left {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* ==========================================================================
   Hero Banner (Detay sayfası)
   ========================================================================== */

.kurs-hero-banner {
    background-size: cover;
    background-position: center;
    min-height: 300px;
    position: relative;
}

.kurs-hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 2rem 0;
}

.breadcrumb-light .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Stat Icons (Detay sayfası)
   ========================================================================== */

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Kapak Fotoğrafı (Index sayfası)
   ========================================================================== */

.kurs-kapak-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.kurs-kapak {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kurs-card:hover .kurs-kapak {
    transform: scale(1.05);
}

.kurs-kapak-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.kurs-kapak-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Skeleton Loading Animasyonu
   ========================================================================== */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-box {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==========================================================================
   Process Timeline (BasvuruDetay sayfası)
   ========================================================================== */

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.timeline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-icon {
    background: var(--bs-success);
    color: white;
}

.timeline-item.active .timeline-icon {
    background: var(--bs-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.timeline-content {
    text-align: center;
}

.timeline-content strong {
    font-size: 13px;
}

.timeline-content small {
    font-size: 11px;
}

.timeline-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 22px 8px 0;
    min-width: 40px;
    max-width: 80px;
}

.timeline-line.completed {
    background: var(--bs-success);
}

/* ==========================================================================
   Step Indicator (Odeme sayfası)
   ========================================================================== */

.step-item {
    text-align: center;
    flex: 0 0 auto;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    font-weight: bold;
    font-size: 14px;
}

.step-item.completed .step-circle {
    background: var(--bs-success);
    color: white;
}

.step-item.active .step-circle {
    background: var(--bs-primary);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 8px;
    margin-bottom: 20px;
}

.step-item.completed + .step-line,
.step-line + .step-item.completed {
    background: var(--bs-success);
}

/* ==========================================================================
   Security Badges (Odeme sayfası)
   ========================================================================== */

.security-badges {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

/* ==========================================================================
   Responsive - Ek Stiller
   ========================================================================== */

@media (max-width: 576px) {
    .timeline-item {
        min-width: 60px;
    }
    
    .timeline-line {
        min-width: 20px;
    }
}
