/* ============================================
   MY ACCOUNT — COURSES PAGE
   Matches LifeWise dark theme + gold accents
   ============================================ */

/* ---- Page Title ---- */
.lw-woocommerce-MyAccount-content h2.title,
.woocommerce-MyAccount-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #15171a;
    margin: 0 0 24px 0;
    letter-spacing: -0.3px;
}

/* ---- No Courses State ---- */
.lifewise-no-courses {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, #1c1e22 0%, #15171a 100%);
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.lifewise-no-courses-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.lifewise-no-courses-icon .dashicons {
    width: 64px;
    height: 64px;
    background: radial-gradient(ellipse at center, #f7ef9c 0%, #c99832 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lifewise-no-courses h3 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
}

.lifewise-no-courses p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 28px 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.lifewise-no-courses .button {
    display: inline-block;
    padding: 14px 32px;
    background: radial-gradient(
        ellipse at center,
        #f7ef9c 0%,
        #f5e58a 25%,
        #e6c768 55%,
        #c99832 80%,
        #a56e26 100%
    );
    color: #15171a !important;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lifewise-no-courses .button:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

/* ---- Courses Grid ---- */
.lifewise-courses-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}

.lifewise-courses-grid br {
    display: none;
}

/* ---- Course Card ---- */
.lifewise-course-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.lifewise-course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ---- Course Header ---- */
.lifewise-course-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1c1e22 0%, #15171a 100%);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.lifewise-course-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 100px;
    pointer-events: none;
    background: radial-gradient(
        ellipse at right bottom,
        rgba(212, 175, 55, 0.15) 0%,
        transparent 70%
    );
}

html body main .lifewise-course-header h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.lifewise-course-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.lifewise-course-videos {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
}

.lifewise-course-videos .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    color: #d4af37;
}

.lifewise-status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-published {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-draft {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* ---- Course Actions ---- */
.lifewise-course-actions {
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---- Small Buttons ---- */
.lw-btn-sm {
    display: inline-block;
    text-align: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1.4;
    border: none;
}

.lw-btn-primary {
    background: radial-gradient(
        ellipse at center,
        #f7ef9c 0%,
        #f5e58a 25%,
        #e6c768 55%,
        #c99832 80%,
        #a56e26 100%
    ) !important;
    color: #15171a !important;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.lw-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35) !important;
    transform: translateY(-1px);
    color: #15171a !important;
}

.lw-btn-secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
}

.lw-btn-secondary:hover,
.lw-btn-secondary.is-active {
    background: #e5e7eb !important;
    color: #111827 !important;
}

/* ---- Results Panel ---- */
.lifewise-results-panel {
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    padding: 16px 20px;
}

.lifewise-results-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lifewise-no-results {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.lifewise-no-results .dashicons {
    color: #d4af37;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.lifewise-no-results p {
    margin: 0;
}

.lifewise-quiz-passed-info {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* ---- Video Progress ---- */
.lifewise-video-progress {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.lifewise-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lifewise-progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.lifewise-progress-label .dashicons {
    color: #d4af37;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lifewise-progress-percentage {
    font-size: 15px;
    font-weight: 700;
    background: radial-gradient(ellipse at center, #c99832 0%, #a56e26 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lifewise-progress-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 5px;
}

.lifewise-progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(
        90deg,
        #f7ef9c 0%,
        #e6c768 40%,
        #c99832 80%,
        #a56e26 100%
    );
    transition: width 0.5s ease;
}

.lifewise-progress-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.lifewise-quiz-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.lifewise-quiz-completed,
.lifewise-overall-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.lifewise-quiz-completed .dashicons,
.lifewise-overall-score .dashicons {
    color: #d4af37;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lifewise-quiz-progress {
    margin-top: 10px;
}

.lifewise-quiz-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lifewise-quiz-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.lifewise-quiz-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lifewise-quiz-item.passed {
    border-left: 4px solid #10b981;
}

.lifewise-quiz-item.failed {
    border-left: 4px solid #ef4444;
}

.lifewise-quiz-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lifewise-quiz-item-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.lifewise-quiz-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
}

.lifewise-quiz-item.passed .lifewise-quiz-status {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.lifewise-quiz-item.failed .lifewise-quiz-status {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.lifewise-quiz-item-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b7280;
}

.lifewise-quiz-score,
.lifewise-quiz-time,
.lifewise-quiz-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
html body div ul li.dashboard-lifewise-played-item:hover {
    transform: translateY(0px);
    box-shadow: none;
}

.lifewise-played-alert {
    display: flex;
    flex-direction: column;
    gap: 20px;
    outline: none !important;
    background-color: #ecdca985;
    margin: 12px 0;
    padding:20px 12px;
    border-left: 4px solid #f3473b;
    color: #111;
    border-radius: 6px;
}

/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
    .lifewise-courses-grid {
        gap: 16px;
    }

    .lifewise-course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lifewise-course-actions {
        flex-direction: column;
    }

    .lifewise-course-actions .lw-btn-sm {
        width: 100%;
    }

    .lifewise-no-courses {
        padding: 40px 16px;
    }

    .lifewise-no-courses-icon {
        font-size: 48px;
    }

    .lifewise-no-courses-icon .dashicons {
        width: 48px;
        height: 48px;
    }

    .dashboard-nav {
        display: flex;
        flex-direction: row;
        gap: 12px;
        overflow-x: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 20px;
    }

    .dashboard-nav::-webkit-scrollbar {
        display: none;
    }

    .dashboard-nav li {
        min-width: 200px;
    }

    .lifewise-quiz-stats {
        flex-direction: column;
        gap: 8px;
    }

    .lifewise-quiz-item-details {
        flex-direction: column;
        gap: 5px;
    }

    .lifewise-quiz-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media screen and (max-width: 480px) {
    .lifewise-course-header {
        padding: 16px 20px;
    }

    html body main .lifewise-course-header h3 {
        font-size: 18px;
    }

    .lifewise-course-actions {
        padding: 12px 20px;
    }

    .lifewise-video-progress,
    .lifewise-results-panel {
        padding: 12px 16px;
    }
}
