/* 
 * TutorLM Flamenco Theme 
 * Colors: Brown (#1a0f0a, #2b1b17) & Gold (#d4af37)
 */

:root {
    /* Primary Colors */
    --tutor-primary-color: #d4af37 !important;
    /* Gold */
    --tutor-primary-hover-color: #b8860b !important;
    /* Darker Gold */
    --tutor-body-color: #e5e5e5 !important;
    /* Light Text */
    --tutor-heading-color: #d4af37 !important;
    /* Gold Headings */

    /* Backgrounds */
    --tutor-color-white: #1a0f0a !important;
    /* Dark Brown Background (replaces white) */
    --tutor-color-gray: #2b1b17 !important;
    /* Slightly lighter brown for cards */
    --tutor-border-color: #8b6c42 !important;
    /* Sepia/Bronze border */
}

/* Global Overrides */
.tutor-wrap,
.tutor-dashboard,
.tutor-course-single-content,
.tutor-single-course-segment {
    background-color: #1a0f0a !important;
    color: #e5e5e5 !important;
}

/* Fix Text Visibility (Global & Aggressive) */
.tutor-wrap,
.tutor-wrap * {
    color: #e5e5e5;
}

/* Re-apply gold to headers/links specifically so they override the global white */
.tutor-wrap h1,
.tutor-wrap h2,
.tutor-wrap h3,
.tutor-wrap h4,
.tutor-wrap h5,
.tutor-wrap h6,
.tutor-wrap a,
.tutor-wrap .tutor-btn,
.tutor-wrap button {
    color: #d4af37;
}

.tutor-wrap p,
.tutor-wrap li,
.tutor-wrap span,
.tutor-wrap div {
    color: #e5e5e5 !important;
}

/* Specific Fix for headers that might be dark */
h1,
h2,
h3,
h4,
h5,
h6,
.tutor-color-black {
    color: #d4af37 !important;
}

/* --- FLAMENCO THEME FIXES --- */

/* Fix Blue Buttons to Gold/Brown */
.tutor-btn-primary,
.tutor-btn-primary:hover,
.tutor-btn-primary:focus,
.tutor-btn-disable {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #1a0f0a !important;
    /* Dark text on Gold */
    font-weight: bold;
}

/* FIX: Prevent Huge Video Player - Target the WRAPPER */
.tutor-video-player-wrapper {
    max-width: 900px !important;
    margin: 20px auto !important;
    width: 100% !important;
}

/* Ensure the video inside fills the wrapper but doesn't overflow */
.tutor-course-single-content video,
.tutor-video-player,
.plyr__video-wrapper,
.plyr {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    background: transparent !important;
}

/* Center the content body */
.tutor-course-topic-single-body,
.tutor-couse-single-content,
.tutor-single-lesson-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Ensure Spotlight mode doesn't break background */
.tutor-spotlight-mode {
    background-color: #1a0f0a !important;
}

/* FIX: Top Bar Color - Override Blue */
.tutor-single-page-top-bar,
.tutor-lesson-sidebar-header,
.tutor-topbar,
.tutor-course-single-sidebar-title,
.tutor-single-lesson-segment {
    background-color: #1a0f0a !important;
    border-bottom: 1px solid #d4af37 !important;
    color: #e5e5e5 !important;
}

.tutor-topbar-content-title,
.tutor-course-topic-single-header-title {
    color: #d4af37 !important;
}


/* Fix "Complete Lesson" button specially if needed */
.tutor-topbar-mark-course-completed {
    background-color: #d4af37 !important;
    color: #1a0f0a !important;
}

/* Fix Text Colors on Dark Backgrounds */
.tutor-color-black,
body .tutor-color-black,
.tutor-dashboard-content,
.tutor-fs-6,
.tutor-fs-5 {
    color: #e0e0e0 !important;
    /* Light gray for readability */
}

/* Specific fix for Course Title/Headings if they are dark */
.tutor-course-title h4,
.tutor-topics-title h3 {
    color: #d4af37 !important;
    /* Gold */
}

/* Hide Upsell / Pro Promotion Banners */
.tutor-pro-banner,
.tutor-upsell-banner,
.tutor-notification-promo {
    display: none !important;
}

/* Hide "Lock" icons on lessons if they are confusing (optional, but user customized player) */
/* .tutor-icon-lock-line { display: none; } */

/* --- FLAMENCO CONTENT DRIP (Lesson Locking) --- */
.flamenco-locked {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative;
}

.flamenco-lock-icon {
    font-style: normal;
    display: inline-block;
    vertical-align: middle;
}

/* Fix Blue Buttons -> Gold */
.tutor-btn-primary,
.tutor-button-primary,
button[class*="tutor-btn-primary"],
.tutor-course-comp-btn {
    background-color: #d4af37 !important;
    border-color: #b8860b !important;
    color: #1a0f0a !important;
}

.tutor-btn-primary:hover,
.tutor-button-primary:hover {
    background-color: #f1c40f !important;
    color: #000 !important;
}

/* Cards & Containers */
.tutor-card,
.tutor-course-card,
.tutor-dashboard-content {
    background-color: #2b1b17 !important;
    border: 1px solid #8b6c42 !important;
    border-radius: 8px !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.tutor-course-title,
.tutor-dashboard-title {
    color: #d4af37 !important;
    font-family: 'Playfair Display', serif !important;
}

/* Buttons */
.tutor-btn,
.tutor-button {
    background-color: #d4af37 !important;
    color: #1a0f0a !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    text-transform: uppercase;
}

.tutor-btn:hover,
.tutor-button:hover {
    background-color: #f1c40f !important;
    color: #000 !important;
}

/* Form Inputs */
.tutor-form-control,
.tutor-form-select {
    background-color: #1a0f0a !important;
    border: 1px solid #8b6c42 !important;
    color: #d4af37 !important;
}

/* Links */
a.tutor-link,
.tutor-dashboard-menu a {
    color: #d4af37 !important;
}

a.tutor-link:hover,
.tutor-dashboard-menu a:hover {
    color: #fff !important;
}

/* Dashboard Active State */
.tutor-dashboard-menu-item.active {
    background-color: rgba(212, 175, 55, 0.1) !important;
    border-left: 3px solid #d4af37 !important;
}

/* HIDE UPSELLS / PRO NAGS */
.tutor-pro-alert,
.tutor-go-pro,
.tutor-highlight-upsell,
.tutor-screen-overlay-lock,
a[href*="themeum.com/pricing"],
.tutor-banner-upsell {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Unlock UI visually where possible (doesn't enable backend features, but cleans UI) */
.tutor-is-locked {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}


/* FIX: Force white text on Lesson List items so they are visible against dark background */
.tutor-course-topic-list a,
.tutor-single-lesson-items a,
.tutor-course-lesson h5,
.tutor-course-lesson p {
    color: #e5e5e5 !important;
}

.tutor-course-topic-list a:hover,
.tutor-single-lesson-items a:hover {
    color: #d4af37 !important;
}

/* FIX: Registration/Login Form Visibility */
.tutor-login-form-wrap label,
.tutor-registration-form-wrap label {
    color: #d4af37 !important;
    /* Gold labels */
    font-weight: bold;
}

.tutor-login-form-wrap input,
.tutor-registration-form-wrap input {
    background-color: #1a0f0a !important;
    /* Dark input bg */
    border: 1px solid #d4af37 !important;
    /* Gold border */
    color: #fff !important;
    /* White text */
}

.tutor-login-form-wrap input:focus,
.tutor-registration-form-wrap input:focus {
    box-shadow: 0 0 5px #d4af37 !important;
}

.tutor-icon-lock {
    display: none !important;
    /* Hide lock icons */
}