﻿/* Virtual Course Player Styles */

/* =====================
   PAGE LAYOUT
   ===================== */

.course-player-page {
    background: var(--primary-dark);
    min-height: 100vh;
}

.player-nav {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.back-btn,
.user-btn {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover,
.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-gold);
}

.course-title-nav {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-gold);
}

.course-player-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    height: calc(100vh - 61px);
}

/* =====================
   VIDEO SECTION
   ===================== */

.video-section {
    background: #000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.video-player {
    position: relative;
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player:hover .video-controls {
    opacity: 1;
}

.progress-container {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: var(--secondary-gold);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary-gold);
}

.time-display {
    color: white;
    font-size: 0.9rem;
    min-width: 100px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

#volumeSlider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--secondary-gold);
    border-radius: 50%;
    cursor: pointer;
}

.speed-control {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* =====================
   LESSON INFO
   ===================== */

.lesson-info {
    padding: 30px;
    background: var(--primary-dark);
    color: white;
}

.lesson-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-gold);
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

.btn-complete {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.lesson-description {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.lesson-navigation {
    display: flex;
    gap: 15px;
}

.lesson-navigation button {
    flex: 1;
}

/* =====================
   SIDEBAR
   ===================== */

.course-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    height: 100%;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.sidebar-header h3 {
    margin: 0 0 15px 0;
    color: var(--secondary-gold);
}

.progress-overview {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.progress-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.progress-circle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--secondary-gold);
}

.course-modules {
    padding: 0;
}

.module-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.module-header-sidebar {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
}

.module-header-sidebar h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-gold);
    font-size: 1rem;
}

.module-header-sidebar p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lessons-list {
    padding: 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.lesson-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--secondary-gold);
}

.lesson-item.active {
    background: rgba(199, 142, 63, 0.1);
    border-left-color: var(--secondary-gold);
}

.lesson-item.completed {
    opacity: 0.7;
}

.lesson-number {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-item.active .lesson-number {
    background: var(--secondary-gold);
    color: var(--primary-dark);
}

.lesson-details {
    flex: 1;
}

.lesson-title-sidebar {
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.lesson-duration-sidebar {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lesson-check {
    color: #28a745;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lesson-play {
    color: var(--secondary-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

/* =====================
   MY COURSES PAGE
   ===================== */

.my-courses-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(199, 142, 63, 0.1) 100%);
    text-align: center;
}

.my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.my-course-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.my-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(199, 142, 63, 0.2);
    border-color: var(--secondary-gold);
}

.course-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(199, 142, 63, 0.1), rgba(255, 255, 255, 0.05));
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--secondary-gold);
}

.completed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-content {
    padding: 20px;
}

.course-category {
    display: inline-block;
    background: rgba(199, 142, 63, 0.2);
    color: var(--secondary-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.course-content h3 {
    font-size: 1.3rem;
    margin: 10px 0;
    color: white;
}

.course-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.course-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.progress-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-gold), #d4a049);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-gold);
    min-width: 40px;
}

.course-actions-bottom {
    margin-top: 20px;
}

.course-actions-bottom .btn-primary {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 1024px) {
    .course-player-container {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        height: auto;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .player-nav {
        padding: 10px 15px;
    }

    .course-title-nav {
        font-size: 0.9rem;
    }

    .lesson-info {
        padding: 20px;
    }

    .lesson-info h1 {
        font-size: 1.5rem;
    }

    .lesson-navigation {
        flex-direction: column;
    }

    .my-courses-grid {
        grid-template-columns: 1fr;
    }

    .controls-row {
        flex-wrap: wrap;
    }

    .volume-control {
        margin-left: 0;
    }
}

/* =====================
   ANIMATIONS
   ===================== */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
