/* Ana Stil Dosyası */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Slider Styles */
.carousel-item {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-color: #667eea; /* Fallback color */
}

.slider-bg {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #667eea; /* Fallback background */
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Fallback gradient */
    display: flex;
    align-items: center;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
}

.slider-content {
    z-index: 10;
    position: relative;
}

.slider-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease-out;
}

.slider-content h2 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease-out 0.2s both;
}

.slider-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease-out 0.4s both;
}

.slider-content .btn {
    animation: slideInUp 1s ease-out 0.6s both;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: rgba(255, 255, 255, 1);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-content {
    position: relative;
    z-index: 2;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}

.carousel-indicators {
    bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Course Cards */
.course-card {
    overflow: hidden;
}

.course-card img {
    transition: transform 0.3s ease;
}

.course-card:hover img {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* Video Player */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Dashboard */
.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.stats-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Quiz Styles */
.quiz-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
}

.quiz-option.correct {
    border-color: var(--success-color);
    background-color: #d4edda;
}

.quiz-option.incorrect {
    border-color: var(--danger-color);
    background-color: #f8d7da;
}

/* Course Player Styles */
.course-player-container {
    margin-top: -1rem;
}

.video-container {
    background: #000;
    position: relative;
    min-height: 400px;
}

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

.no-video, .no-lesson, .access-denied {
    background: #f8f9fa;
    color: #6c757d;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lesson-info {
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.course-sidebar {
    background: #fff;
    border-left: 1px solid #dee2e6;
    height: 100vh;
    overflow-y: auto;
}

.lesson-item {
    color: #495057;
    transition: background-color 0.2s;
}

.lesson-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.lesson-item.active {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.lesson-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.section-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Course Cards */
.course-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stats-card {
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

/* Responsive Course Player */
@media (max-width: 992px) {
    .course-sidebar {
        height: auto;
        border-left: none;
        border-top: 1px solid #dee2e6;
    }
    
    .video-player iframe,
    .video-player video {
        height: 250px;
    }
}
