/* Érettségi Bázis - Course Viewer Styles */

/* Course Layout */
.course-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: calc(100vh - 80px);
}

/* Course Header */
.course-header {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.course-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--primary-text);
}

.course-info h1 {
    font-size: 18px;
    font-weight: 600;
}

.course-info p {
    font-size: 12px;
    color: var(--secondary-text);
}

.course-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary-text);
}

.progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    position: relative;
    background: conic-gradient(var(--accent-purple) 0deg, var(--accent-purple) calc(var(--progress, 0) * 3.6deg), rgba(255,255,255,0.1) calc(var(--progress, 0) * 3.6deg));
}

/* Sidebar */
.course-sidebar {
    background: var(--secondary-bg);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    position: fixed;
    width: 300px;
    height: calc(100vh - 80px);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-subtitle {
    font-size: 12px;
    color: var(--secondary-text);
}

.lessons-list {
    padding: 16px 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--secondary-text);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.lesson-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-text);
}

.lesson-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border-left-color: var(--accent-purple);
}

.lesson-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.lesson-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.lesson-icon.completed {
    background: var(--success-green);
    color: white;
}

.lesson-icon.current {
    background: var(--accent-purple);
    color: white;
}

.lesson-icon.locked {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-text);
}

.lesson-icon.available {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-text);
}

.lesson-content {
    flex: 1;
    min-width: 0;
}

.lesson-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-meta {
    font-size: 12px;
    opacity: 0.7;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lesson-duration {
    color: var(--secondary-text);
}

.lesson-type {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 10px;
}

/* Content Area */
.content-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 300px;
}

.content-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px;
}

.content-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.content-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--secondary-text);
    flex-wrap: wrap;
}

.content-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Media Player */
.media-player {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    height: 400px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    position: relative;
}

.placeholder-text {
    position: absolute;
    bottom: 20px;
    font-size: 16px;
    text-align: center;
}

.media-controls {
    padding: 16px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 16px;
}

.play-btn {
    background: var(--accent-purple);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.1);
}

.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-played {
    height: 100%;
    background: var(--accent-purple);
    transition: width 0.1s ease;
}

.time-display {
    color: white;
    font-size: 12px;
    min-width: 80px;
    text-align: right;
}

/* Text Content */
.text-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4 {
    color: var(--primary-text);
    margin-bottom: 16px;
    margin-top: 24px;
}

.text-content h1:first-child,
.text-content h2:first-child,
.text-content h3:first-child {
    margin-top: 0;
}

.text-content p {
    color: var(--secondary-text);
    margin-bottom: 16px;
}

.text-content ul,
.text-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.text-content li {
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.text-content blockquote {
    border-left: 4px solid var(--accent-purple);
    padding-left: 16px;
    margin: 24px 0;
    font-style: italic;
    color: var(--secondary-text);
}

.text-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
}

.text-content pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.text-content pre code {
    background: none;
    padding: 0;
}

/* Subscription CTA */
.subscription-cta {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 24px 0;
}

.cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cta-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cta-description {
    color: var(--secondary-text);
    margin-bottom: 24px;
}

/* Lesson Navigation */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.nav-section {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-prev {
    order: 1;
}

.nav-actions {
    order: 2;
    display: flex;
    gap: 12px;
}

.nav-next {
    order: 3;
}

.lesson-nav-btn {
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--primary-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
    overflow: hidden;
}

.lesson-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.lesson-nav-btn .nav-label {
    font-size: 12px;
    color: var(--secondary-text);
    display: block;
}

.lesson-nav-btn .nav-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Completion Button */
.complete-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.complete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.complete-btn.completed {
    background: var(--success-green);
}

/* File Downloads */
.file-downloads {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.download-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.download-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-purple);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.download-info {
    flex: 1;
}

.download-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.download-size {
    font-size: 12px;
    color: var(--secondary-text);
}

.download-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--primary-text);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: fixed;
        left: -300px;
        transition: left 0.3s ease;
        z-index: 1001;
    }
    
    .course-sidebar.open {
        left: 0;
    }
    
    .content-area {
        margin-left: 0;
    }
    
    .course-nav {
        padding: 0 16px;
    }
    
    .content-body {
        padding: 16px;
    }
    
    .video-placeholder {
        height: 250px;
        font-size: 32px;
    }
    
    .placeholder-text {
        font-size: 14px;
    }
    
    .lesson-navigation {
        flex-direction: column;
    }
    
    .nav-section {
        justify-content: center;
    }
    
    .lesson-nav-btn {
        max-width: none;
        justify-content: center;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .content-meta {
        font-size: 12px;
    }
}

/* Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 1002;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    color: var(--primary-text);
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

/* Progress Animation */
@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--target-width); }
}

.progress-fill.animate {
    animation: progressFill 0.5s ease-out;
}

/* Loading States */
.content-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--secondary-text);
}

.content-loading .loading-spinner {
    margin-right: 12px;
}

/* Note Taking */
.notes-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.notes-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--primary-text);
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.notes-save {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--accent-purple);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notes-save:hover {
    background: var(--accent-pink);
}
