/* Course Player Specific Styles */

.player-body {
    background: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Player Header */
.player-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.player-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.back-btn {
    background: none;
    border: 1px solid #666;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: #333;
    border-color: #999;
}

.course-info {
    text-align: center;
    flex: 1;
    margin: 0 2rem;
}

.course-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.progress-info {
    font-size: 0.9rem;
    color: #ccc;
}

.player-controls-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.speed-btn, .settings-btn {
    background: #333;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.speed-btn:hover, .settings-btn:hover {
    background: #555;
}

.progress-bar-container {
    padding: 0 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.progress-bar-full {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 25%;
    transition: width 0.3s ease;
}

/* Main Player */
.player-main {
    margin-top: 120px;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.player-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Image Player */
.image-player {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.concept-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.concept-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Player Controls */
.player-controls {
    background: #222;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #333;
    transform: scale(1.1);
}

.play-pause-btn {
    background: #6366f1;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
}

.play-pause-btn:hover {
    background: #5855eb;
}

.time-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1rem;
}

.time-display {
    font-size: 0.9rem;
    color: #ccc;
    min-width: 40px;
}

.concept-progress-bar {
    flex: 1;
    height: 6px;
    background: #444;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.concept-progress-fill {
    height: 100%;
    background: #6366f1;
    width: 30%;
    transition: width 0.1s ease;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: #444;
    outline: none;
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

/* Concept Navigation */
.concept-navigation {
    background: #111;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
}

.concept-navigation h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.concepts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.concept-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #222;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.concept-item:hover {
    background: #333;
}

.concept-item.active {
    background: #6366f1;
    border-color: #8b5cf6;
}

.concept-item.completed {
    background: #059669;
}

.concept-number {
    width: 30px;
    height: 30px;
    background: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 1rem;
}

.concept-item.active .concept-number {
    background: #fff;
    color: #6366f1;
}

.concept-item.completed .concept-number {
    background: #fff;
    color: #059669;
}

.concept-item.completed .concept-number::after {
    content: '✓';
}

.concept-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #fff;
}

.concept-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.3;
}

/* Concept Details Panel */
.concept-details {
    background: #111;
    border-radius: 12px;
    margin-top: 2rem;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.details-header h3 {
    margin: 0;
    color: #fff;
}

.toggle-details {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.toggle-details:hover {
    background: #333;
}

.details-content {
    padding: 1.5rem;
}

.concept-explanation, .key-points, .related-concepts {
    margin-bottom: 2rem;
}

.concept-explanation h4, .key-points h4, .related-concepts h4 {
    color: #6366f1;
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.concept-explanation p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.key-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-points li {
    color: #ccc;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.key-points li::before {
    content: '•';
    color: #6366f1;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #333;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #6366f1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #111;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
}

.close-modal {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #333;
}

/* Quiz Styles */
.question {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    background: #222;
    border: 2px solid #444;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    background: #333;
    border-color: #666;
}

.quiz-option.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.quiz-option.correct {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.quiz-option.wrong {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.quiz-feedback {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.quiz-feedback.correct {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid #059669;
    color: #10b981;
}

.quiz-feedback.wrong {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    color: #f87171;
}

/* Settings Styles */
.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.setting-group select {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem;
    border-radius: 6px;
    width: 100%;
}

.setting-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.setting-group span {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .player-container {
        grid-template-columns: 1fr;
    }
    
    .concept-navigation {
        order: -1;
    }
}

@media (max-width: 768px) {
    .player-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-info {
        margin: 0;
    }
    
    .player-main {
        padding: 1rem;
        margin-top: 140px;
    }
    
    .player-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .time-controls {
        order: 3;
        width: 100%;
        margin: 0.5rem 0 0 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
