/* 
 * ==========================================================================
 * FaceUp Akademija - Luxury Dark Course Page Styling
 * Targets single LearnDash course pages (body.single-sfwd-courses)
 * ==========================================================================
 */

/* 1. Canvas & Foundation (Deep Obsidian) */
body.single-sfwd-courses,
body.single-sfwd-courses #main,
body.single-sfwd-courses #primary,
body.single-sfwd-courses #content-wrap,
body.single-sfwd-courses #content,
body.single-sfwd-courses .site-content,
body.single-sfwd-courses .elementor-location-single,
body.single-sfwd-courses div[data-elementor-type="sfwd-courses"],
body.single-sfwd-courses .e-con,
body.single-sfwd-courses .e-con-inner,
body.single-sfwd-courses .elementor-element {
    background-color: #131318 !important;
    color: #e4e1e8 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 2. Hide Theme Header & Display Exclusive FaceUp Club Nav */
body.faceup-has-club-nav #lastudio-header-builder,
body.faceup-has-club-nav .lahb-wrap,
body.faceup-has-club-nav .lahb-wrap-sticky-height,
body.single-sfwd-courses #lastudio-header-builder,
body.single-sfwd-courses .lahb-wrap,
body.single-sfwd-courses .lahb-wrap-sticky-height {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* Ensure FaceUp Club Nav sits cleanly at top with perfect styling on Course Pages */
body.faceup-has-club-nav .faceup-club-nav,
body.single-sfwd-courses .faceup-club-nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #131318 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.admin-bar.faceup-has-club-nav .faceup-club-nav,
body.admin-bar.single-sfwd-courses .faceup-club-nav {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar.faceup-has-club-nav .faceup-club-nav,
    body.admin-bar.single-sfwd-courses .faceup-club-nav {
        top: 46px !important;
    }
}

/* Adjust page content top padding */
body.single-sfwd-courses #primary,
body.single-sfwd-courses #content,
body.single-sfwd-courses .site-content {
    padding-top: 10px !important;
}

/* 3. Left Column: Floating Course Poster */
body.single-sfwd-courses .elementor-element-b5d4982,
body.single-sfwd-courses .elementor-widget-theme-post-featured-image,
body.single-sfwd-courses .elementor-widget-image {
    position: sticky !important;
    top: 90px !important;
    z-index: 20;
}

body.single-sfwd-courses .elementor-widget-image img,
body.single-sfwd-courses .elementor-widget-theme-post-featured-image img,
body.single-sfwd-courses .attachment-large {
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(226, 168, 182, 0.15) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

body.single-sfwd-courses .elementor-widget-image img:hover {
    transform: scale(1.015);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(226, 168, 182, 0.25) !important;
}

/* 4. Right Column: Course Typography & Title */
body.single-sfwd-courses .elementor-widget-theme-post-title h1,
body.single-sfwd-courses h1.elementor-heading-title,
body.single-sfwd-courses .elementor-heading-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    body.single-sfwd-courses .elementor-widget-theme-post-title h1,
    body.single-sfwd-courses h1.elementor-heading-title {
        font-size: 28px !important;
    }
}

/* 5. Course Description (Frosted Glass Luxury Card) */
body.single-sfwd-courses .ld-tabs-content,
body.single-sfwd-courses .ld-tab-content,
body.single-sfwd-courses .elementor-widget-theme-post-content {
    color: #cfcbd5 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}

body.single-sfwd-courses .ld-tab-content {
    background: rgba(26, 26, 36, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    padding: 28px !important;
    margin-bottom: 36px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

body.single-sfwd-courses .ld-tab-content p {
    color: #d1ced7 !important;
    margin-bottom: 16px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

body.single-sfwd-courses .ld-tab-content h2,
body.single-sfwd-courses .ld-tab-content h3,
body.single-sfwd-courses .ld-tab-content h4 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

body.single-sfwd-courses .ld-tab-content ul,
body.single-sfwd-courses .ld-tab-content ol {
    margin-bottom: 20px !important;
    padding-left: 20px !important;
}

body.single-sfwd-courses .ld-tab-content li {
    color: #d1ced7 !important;
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
}

body.single-sfwd-courses .ld-tab-content strong {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* 6. LearnDash Curriculum Section ("Turinys") */
body.single-sfwd-courses .ld-item-list.ld-lesson-list {
    margin-top: 24px !important;
}

body.single-sfwd-courses .ld-section-heading h2,
body.single-sfwd-courses .ld-item-list .ld-section-heading h2 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
}

body.single-sfwd-courses .ld-section-heading h2::before {
    content: "✦";
    display: inline-block;
    color: #e2a8b6;
    margin-right: 10px;
    font-size: 18px;
}

/* Individual Lesson Cards (Replace harsh black borders with sleek dark glass cards) */
body.single-sfwd-courses .ld-item-list-item.ld-item-lesson-item,
body.single-sfwd-courses .ld-item-list-item {
    background: #1a1a24 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.single-sfwd-courses .ld-item-list-item:hover {
    background: #22222e !important;
    border-color: rgba(226, 168, 182, 0.45) !important;
    transform: translateX(6px) translateY(-1px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(226, 168, 182, 0.12) !important;
}

/* Lesson Preview & Link */
body.single-sfwd-courses .ld-item-list-item-preview {
    display: flex !important;
    align-items: center !important;
}

body.single-sfwd-courses a.ld-item-name {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
    width: 100% !important;
}

body.single-sfwd-courses .ld-item-title {
    color: #f1eff5 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

body.single-sfwd-courses .ld-item-list-item:hover .ld-item-title {
    color: #ffffff !important;
}

/* 7. Lesson Status Icons (Checkmarks & Rings) */
body.single-sfwd-courses .ld-status-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 50% !important;
    transition: all 0.25s ease !important;
}

/* Incomplete (Sleek circle) */
body.single-sfwd-courses .ld-status-icon.ld-status-incomplete {
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    background: transparent !important;
}

body.single-sfwd-courses .ld-item-list-item:hover .ld-status-icon.ld-status-incomplete {
    border-color: #e2a8b6 !important;
}

/* Complete (Rose-gold glow checkmark) */
body.single-sfwd-courses .ld-status-icon.ld-status-complete {
    background: linear-gradient(135deg, #e2a8b6 0%, #e4bcc4 100%) !important;
    border: 2px solid #e2a8b6 !important;
    color: #3b1822 !important;
    box-shadow: 0 0 10px rgba(226, 168, 182, 0.4) !important;
}

body.single-sfwd-courses .ld-status-icon.ld-status-complete svg,
body.single-sfwd-courses .ld-status-icon.ld-status-complete::after {
    fill: #3b1822 !important;
    color: #3b1822 !important;
}

/* 8. Progress Bar ("14% BAIGTA") */
body.single-sfwd-courses .ld-course-status,
body.single-sfwd-courses .ld-progress {
    background: #1a1a24 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin-top: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

body.single-sfwd-courses .ld-progress-bar {
    background: rgba(255, 255, 255, 0.08) !important;
    height: 8px !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}

body.single-sfwd-courses .ld-progress-bar-percentage {
    background: linear-gradient(135deg, #e2a8b6 0%, #e4bcc4 100%) !important;
    height: 100% !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 12px rgba(226, 168, 182, 0.5) !important;
}

body.single-sfwd-courses .ld-progress-stats {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 13px !important;
}

body.single-sfwd-courses .ld-progress-percentage {
    color: #e2a8b6 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

body.single-sfwd-courses .ld-progress-steps {
    color: #a09fa6 !important;
}

/* 9. Action / Start Course Button */
body.single-sfwd-courses .ld-course-status-action .ld-button,
body.single-sfwd-courses .learndash-wrapper .ld-button {
    background: linear-gradient(135deg, #e2a8b6 0%, #e4bcc4 100%) !important;
    color: #3b1822 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    padding: 14px 32px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(226, 168, 182, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

body.single-sfwd-courses .ld-course-status-action .ld-button:hover,
body.single-sfwd-courses .learndash-wrapper .ld-button:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(226, 168, 182, 0.5) !important;
    color: #270f16 !important;
}

/* 10. Access Tooltip & Locked Lesson notices */
body.single-sfwd-courses .ld-tooltip__text,
body.single-sfwd-courses .ld-status-waiting {
    background: rgba(26, 26, 36, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cfcbd5 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

/* 11. Custom Scrollbar for smooth luxury feel */
body.single-sfwd-courses::-webkit-scrollbar {
    width: 8px;
}
body.single-sfwd-courses::-webkit-scrollbar-track {
    background: #131318;
}
body.single-sfwd-courses::-webkit-scrollbar-thumb {
    background: #2a292f;
    border-radius: 4px;
}
body.single-sfwd-courses::-webkit-scrollbar-thumb:hover {
    background: #39393e;
}
