/*
Theme Name: Wood Legoute Theme
Theme URI: https://woodlegoute.com
Author: Wood Legoute
Author URI: https://woodlegoute.com
Description: A clean, no-BS theme for digital products and passive income content. Designed for clarity and authenticity.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woodlegoute
Tags: blog, e-commerce, portfolio, one-column, custom-colors, custom-menu, featured-images, flexible-header, full-width-template
*/

/* CSS Variables */
:root {
    --primary: #1a1a1a;
    --secondary: #4a4a4a;
    --accent: #ff6b35;
    --bg: #fafafa;
    --white: #ffffff;
    --border: #e0e0e0;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--bg);
    color: var(--primary);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

/* Navigation */
nav.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1.5rem 0;
}

nav.main-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
    z-index: 1002;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop Navigation */
.nav-menu-wrapper {
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide nav wrapper by default on mobile */
    body .nav-menu-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: white !important;
        transition: transform 0.3s ease, visibility 0s 0.3s, opacity 0.3s ease !important;
        overflow-y: auto !important;
        z-index: 1001 !important;
        padding-top: 80px !important;
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }
    
    /* Show menu when active */
    body .nav-menu-wrapper.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: transform 0.3s ease, visibility 0s 0s, opacity 0.3s ease !important;
    }
    
    /* Force mobile menu toggle to show */
    body .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
    }
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Force nav-links to be vertical list */
    body .nav-links,
    body ul.nav-links {
        display: block !important;
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        list-style: none !important;
        flex-wrap: nowrap !important;
    }
    
    /* Force list items to be full width blocks */
    body .nav-links li,
    body ul.nav-links li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #E2E8F0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        flex: none !important;
    }
    
    /* Force links to be visible and styled */
    body .nav-links li a,
    body ul.nav-links li a {
        display: block !important;
        padding: 1.25rem 2rem !important;
        font-size: 1.1rem !important;
        color: #1a1a1a !important;
        width: 100% !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        float: none !important;
        background: transparent !important;
    }
    
    /* Hover state */
    body .nav-links li a:hover,
    body ul.nav-links li a:hover {
        background: #F8FAFC !important;
        color: #ff6b35 !important;
    }
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--secondary);
    max-width: 650px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Content Area */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Blog Posts */
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.post-category {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--primary);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

footer p {
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .post-card {
        padding: 1.5rem;
    }
}

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

.hero, .content-area {
    animation: fadeInUp 0.8s ease-out;
}

/* Course Archive Styles */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.course-content {
    padding: 1.5rem;
}

.course-meta-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.course-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-beginner {
    background: #e8f5e9;
    color: #2e7d32;
}

.level-intermediate {
    background: #fff3e0;
    color: #ef6c00;
}

.level-advanced {
    background: #fce4ec;
    color: #c2185b;
}

.course-students {
    font-size: 0.85rem;
    color: var(--secondary);
}

.course-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.course-card h2 a {
    color: var(--primary);
    text-decoration: none;
}

.course-card h2 a:hover {
    color: var(--accent);
}

.course-excerpt {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.course-meta-bottom {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary);
}

.meta-item svg {
    opacity: 0.7;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Single Course Styles */
.single-course {
    margin-top: 80px;
}

.course-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 4rem 2rem;
}

.course-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.course-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.course-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.course-breadcrumb a:hover {
    text-decoration: underline;
}

.course-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.course-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.course-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.stat svg {
    opacity: 0.9;
}

.course-hero-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.course-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.course-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.course-section {
    margin-bottom: 3rem;
}

.course-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.course-description {
    color: var(--secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.course-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.course-features-list li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 4px;
}

.course-features-list svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.2rem;
}

.course-curriculum {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.curriculum-module {
    border-bottom: 1px solid var(--border);
}

.curriculum-module:last-child {
    border-bottom: none;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg);
}

.module-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.module-lesson-count {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

.module-lessons {
    list-style: none;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    transition: background 0.2s;
}

.lesson-item:hover {
    background: var(--bg);
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lesson-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.lesson-title {
    color: var(--primary);
    font-weight: 500;
}

.lesson-duration {
    font-size: 0.85rem;
    color: var(--secondary);
}

.course-sidebar {
    position: sticky;
    top: 100px;
}

.course-purchase-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.purchase-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.purchase-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-card-content {
    padding: 2rem;
}

.purchase-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.purchase-includes h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.purchase-includes ul {
    list-style: none;
}

.purchase-includes li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--secondary);
    font-size: 0.95rem;
}

.purchase-includes li:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.purchase-includes svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-hero-content {
        grid-template-columns: 1fr;
    }
    
    .course-hero h1 {
        font-size: 2rem;
    }
    
    .course-main-content {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: static;
    }
    
    .course-features-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LMS STUDENT VIEW STYLES
   ============================================ */

/* Student Dashboard */
.student-dashboard {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.dashboard-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 0.5rem;
}

.dashboard-courses h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary);
}

.enrolled-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.enrolled-course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.enrolled-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.enrolled-course-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.enrolled-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.completion-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #4caf50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enrolled-course-content {
    padding: 1.5rem;
}

.enrolled-course-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.course-progress-section {
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

.progress-percentage {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
}

.progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.enrolled-course-meta {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.enrolled-course-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.empty-state p {
    color: var(--secondary);
    margin-bottom: 2rem;
}

/* Certificates Section */
.dashboard-certificates {
    margin-top: 3rem;
}

.dashboard-certificates h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary);
}

.certificates-grid {
    display: grid;
    gap: 1rem;
}

.certificate-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.certificate-icon {
    font-size: 3rem;
}

.certificate-info {
    flex: 1;
}

.certificate-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.certificate-date {
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Lesson Viewer */
.lesson-viewer {
    margin-top: 80px;
    display: flex;
    min-height: calc(100vh - 80px);
}

.lesson-sidebar {
    width: 320px;
    background: var(--white);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
}

.lesson-sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent);
}

.lesson-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.course-progress-mini {
    margin-top: 1rem;
}

.progress-bar-mini {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--secondary);
}

.lesson-curriculum {
    padding: 1rem 0;
}

.curriculum-module-sidebar {
    border-bottom: 1px solid var(--border);
}

.module-header-sidebar {
    padding: 1rem 1.5rem;
    background: var(--bg);
}

.module-header-sidebar h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.module-lessons-sidebar {
    list-style: none;
}

.lesson-item-sidebar {
    border-bottom: 1px solid var(--border);
}

.lesson-item-sidebar:last-child {
    border-bottom: none;
}

.lesson-item-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--secondary);
    transition: background 0.2s;
}

.lesson-item-sidebar:hover a {
    background: var(--bg);
}

.lesson-item-sidebar.current a {
    background: var(--bg);
    color: var(--primary);
    font-weight: 600;
}

.lesson-item-sidebar.completed .lesson-status {
    color: #4caf50;
}

.lesson-status {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-number {
    font-size: 0.8rem;
    font-weight: 600;
}

.lesson-title-sidebar {
    flex: 1;
    font-size: 0.9rem;
}

.lesson-duration-sidebar {
    font-size: 0.75rem;
    color: var(--secondary);
}

.lesson-main {
    flex: 1;
    overflow-y: auto;
}

.lesson-header {
    padding: 3rem 3rem 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.lesson-breadcrumb {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.lesson-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.lesson-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
}

.lesson-video {
    padding: 0;
    background: #000;
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.video-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
}

.video-placeholder small {
    font-size: 0.9rem;
    opacity: 0.9;
}

.lesson-content {
    padding: 3rem;
    max-width: 900px;
}

.lesson-description h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.lesson-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.lesson-description p {
    color: var(--secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.lesson-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.lesson-description li {
    color: var(--secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.lesson-resources {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.resource-link:hover {
    background: var(--white);
    border-color: var(--accent);
    color: var(--accent);
}

.lesson-actions {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

#mark-complete {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

#mark-complete.completed {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
    cursor: default;
}

#mark-complete.completed:hover {
    background: #4caf50;
    color: white;
}

.lesson-navigation {
    padding: 2rem 0;
}

.lesson-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-nav-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Certificate Page */
.certificate-page {
    margin-top: 80px;
    padding: 3rem 2rem;
    min-height: calc(100vh - 80px);
}

.certificate-actions {
    max-width: 1000px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.certificate-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.certificate {
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.certificate-border {
    border: 4px double #d4af37;
    padding: 3rem;
    position: relative;
}

.certificate-border::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border: 1px solid #d4af37;
}

.certificate-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.certificate-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #d4af37;
    margin-bottom: 2rem;
    font-family: 'Space Mono', monospace;
}

.certificate-text {
    text-align: center;
    margin-bottom: 3rem;
}

.certificate-intro {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.certificate-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0;
    font-family: 'Space Mono', monospace;
}

.certificate-completion {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.certificate-course {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.5rem 0;
}

.certificate-date {
    font-size: 1rem;
    color: var(--secondary);
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.signature-line {
    text-align: center;
}

.signature-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 200px;
}

.signature-label {
    font-size: 0.9rem;
    color: var(--secondary);
}

.certificate-seal {
    position: relative;
    text-align: center;
}

.seal-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.certificate-id {
    text-align: center;
    font-size: 0.75rem;
    color: var(--secondary);
    font-family: 'Space Mono', monospace;
}

.certificate-share {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.certificate-share h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

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

/* LMS Notification */
.lms-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #4caf50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 9999;
}

.lms-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles for Certificate */
@media print {
    .certificate-actions,
    .certificate-share,
    nav,
    footer {
        display: none !important;
    }
    
    .certificate-page {
        margin: 0;
        padding: 0;
    }
    
    .certificate {
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Responsive LMS */
@media (max-width: 768px) {
    .lesson-viewer {
        flex-direction: column;
    }
    
    .lesson-sidebar {
        width: 100%;
        position: static;
        height: auto;
        max-height: 400px;
    }
    
    .enrolled-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .lesson-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .lesson-content {
        padding: 2rem 1.5rem;
    }
    
    .certificate-border {
        padding: 1.5rem;
    }
    
    .certificate-title {
        font-size: 2rem;
    }
    
    .certificate-name {
        font-size: 1.8rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
}
