/* ============================================================
   OWL 90 DAY TRAINING — STYLES
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.owl-training-wrap {
    padding: 10px 0 40px;
    color: #ffffff;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.owl-training-breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 24px;
}

.owl-training-breadcrumb a {
    color: var(--owl-green, #00AA44);
    text-decoration: none;
}

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

/* ── Training Header ─────────────────────────────────────── */
.owl-training-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.owl-training-header h2 {
    color: #ffffff !important;
    margin: 0 0 6px;
    font-size: 1.6rem;
}

.owl-training-sub {
    color: #999;
    margin: 0;
    font-size: 0.95rem;
}

.owl-training-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 260px;
}

.owl-training-overall-progress {
    width: 100%;
}

.owl-training-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #aaa;
    margin-bottom: 6px;
}

.owl-training-pct {
    color: var(--owl-green, #00AA44);
    font-weight: 700;
}

.owl-training-progress-bar-wrap {
    background: #333;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    width: 100%;
}

.owl-training-progress-bar {
    background: var(--owl-green, #00AA44);
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ── Continue Button ─────────────────────────────────────── */
.owl-training-continue-btn {
    display: inline-block;
    background: var(--owl-green, #00AA44);
    color: #000 !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.owl-training-continue-btn:hover {
    background: #00e865;
    transform: translateY(-1px);
    color: #000 !important;
}

/* ── Phase Cards ─────────────────────────────────────────── */
.owl-training-phases {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.owl-phase-card {
    display: grid;
    grid-template-columns: 60px 1fr auto 30px;
    align-items: center;
    gap: 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 4px solid var(--phase-color, #00AA44);
    border-radius: 8px;
    padding: 22px 24px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    color: #ffffff;
}

.owl-phase-card:hover {
    background: #222;
    transform: translateX(3px);
    color: #ffffff;
    text-decoration: none !important;
}

.owl-phase-card.owl-phase-complete {
    border-left-color: #00AA44;
    opacity: 0.85;
}

.owl-phase-icon {
    font-size: 2rem;
    text-align: center;
}

.owl-phase-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.owl-phase-days {
    color: #888;
    font-size: 0.82rem;
    margin-bottom: 5px;
}

.owl-phase-desc {
    color: #aaa;
    font-size: 0.88rem;
    line-height: 1.5;
}

.owl-phase-progress {
    min-width: 160px;
    text-align: right;
}

.owl-phase-progress-label {
    font-size: 0.82rem;
    color: #aaa;
    margin-bottom: 6px;
}

.owl-phase-progress-bar-wrap {
    background: #333;
    border-radius: 3px;
    height: 6px;
    overflow: hidden;
}

.owl-phase-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.owl-phase-arrow {
    color: #555;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.owl-phase-card:hover .owl-phase-arrow {
    color: var(--phase-color, #00AA44);
}

/* ── Phase Header (phase detail view) ───────────────────── */
.owl-phase-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 28px;
}

.owl-phase-header-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.owl-phase-header h2 {
    color: #ffffff !important;
    margin: 0 0 4px;
    font-size: 1.5rem;
}

.owl-phase-header p {
    color: #888;
    margin: 0 0 4px;
    font-size: 0.9rem;
}

.owl-phase-header-desc {
    color: #aaa !important;
    font-size: 0.9rem !important;
}

/* ── Lesson List (phase view) ────────────────────────────── */
.owl-lesson-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.owl-lesson-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    transition: background 0.2s;
}

.owl-lesson-row.owl-lesson-complete {
    opacity: 0.75;
}

.owl-lesson-row.owl-lesson-unlocked:hover {
    background: #222;
}

.owl-lesson-row.owl-lesson-locked {
    opacity: 0.5;
}

.owl-lesson-day-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.owl-lesson-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.owl-lesson-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.owl-lesson-title a:hover {
    color: var(--owl-green, #00AA44) !important;
}

.owl-lesson-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.owl-lesson-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.owl-tag-video   { background: #1a2a3a; color: #66aaff; }
.owl-tag-tasks   { background: #1a2a1a; color: #66cc66; }
.owl-tag-complete { background: #0d2d1a; color: #00AA44; }

.owl-lesson-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.owl-btn-start {
    background: var(--owl-green, #00AA44);
    color: #000 !important;
}

.owl-btn-start:hover {
    background: #00e865;
    color: #000 !important;
}

.owl-btn-review {
    background: transparent;
    border: 1px solid #555;
    color: #aaa !important;
}

.owl-btn-review:hover {
    border-color: var(--owl-green, #00AA44);
    color: var(--owl-green, #00AA44) !important;
}

.owl-lesson-locked-icon {
    font-size: 1.2rem;
    opacity: 0.4;
}

/* ── Locked Notice ───────────────────────────────────────── */
.owl-lesson-locked-notice {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 48px 32px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.owl-locked-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.owl-lesson-locked-notice h3 {
    color: #ffffff !important;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.owl-lesson-locked-notice p {
    color: #aaa;
    margin-bottom: 8px;
}

/* ── Lesson View ─────────────────────────────────────────── */
.owl-lesson-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 28px;
}

.owl-lesson-day-num {
    padding: 8px 16px;
    border-radius: 6px;
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 4px;
}

.owl-lesson-title-block h1 {
    color: #ffffff !important;
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.owl-complete-badge {
    display: inline-block;
    background: #0d2d1a;
    color: #00AA44;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #00AA44;
}

/* ── Video Player ────────────────────────────────────────── */
.owl-lesson-video {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.owl-video-player {
    width: 100%;
    max-height: 520px;
    display: block;
}

/* oEmbed (YouTube/Vimeo) responsive wrapper */
.owl-lesson-video .wp-block-embed__wrapper,
.owl-lesson-video iframe {
    width: 100% !important;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

/* ── Lesson Content ──────────────────────────────────────── */
.owl-lesson-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 28px;
    color: #ddd;
    line-height: 1.8;
    font-size: 1rem;
}

.owl-lesson-content h2,
.owl-lesson-content h3,
.owl-lesson-content h4 {
    color: #ffffff !important;
}

.owl-lesson-content a {
    color: var(--owl-green, #00AA44);
}

.owl-lesson-content ul,
.owl-lesson-content ol {
    padding-left: 24px;
}

.owl-lesson-content li {
    margin-bottom: 6px;
}

/* ── Tasks Section ───────────────────────────────────────── */
.owl-lesson-tasks-section {
    background: #1a2a1a;
    border: 1px solid #2a4a2a;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.owl-lesson-tasks-section h3 {
    color: #ffffff !important;
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.owl-tasks-intro {
    color: #888;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.owl-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.owl-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.owl-task-item:hover {
    border-color: #00AA44;
    background: #0d1a0d;
}

.owl-task-item.owl-task-checked {
    border-color: #00AA44;
    background: #0d2d1a;
    opacity: 0.85;
}

.owl-task-item input[type="checkbox"] {
    display: none;
}

.owl-task-check-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #555;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: transparent;
}

.owl-task-item.owl-task-checked .owl-task-check-icon {
    background: var(--owl-green, #00AA44);
    border-color: var(--owl-green, #00AA44);
}

.owl-task-item.owl-task-checked .owl-task-check-icon::after {
    content: '✓';
    color: #000;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
}

.owl-task-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.owl-task-item.owl-task-checked .owl-task-text {
    text-decoration: line-through;
    color: #666;
}

/* ── Mark Complete Section ───────────────────────────────── */
.owl-lesson-complete-section {
    text-align: center;
    padding: 28px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 28px;
}

.owl-mark-complete-btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.owl-mark-complete-btn.owl-btn-ready {
    background: var(--owl-green, #00AA44);
    color: #000;
}

.owl-mark-complete-btn.owl-btn-ready:hover {
    background: #00e865;
    transform: translateY(-2px);
}

.owl-mark-complete-btn.owl-btn-waiting {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.owl-complete-hint {
    color: #666;
    font-size: 0.85rem;
    margin: 10px 0 0;
}

.owl-already-complete p {
    color: #00AA44;
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Completion animation */
.owl-complete-flash {
    animation: owl-flash 0.5s ease;
}

@keyframes owl-flash {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; background: #0d4a2a; }
    100% { opacity: 1; }
}

/* ── Lesson Navigation ───────────────────────────────────── */
.owl-lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.owl-lesson-nav-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #333;
    color: #aaa !important;
    background: #1a1a1a;
    transition: all 0.2s;
}

.owl-lesson-nav-btn:hover {
    border-color: var(--owl-green, #00AA44);
    color: var(--owl-green, #00AA44) !important;
    background: #0d1a0d;
}

.owl-nav-locked {
    opacity: 0.4;
    cursor: default;
}

.owl-nav-overview {
    background: transparent;
    border-color: #444;
}

/* ── Upgrade / Access Notices ────────────────────────────── */
.owl-training-upgrade-notice {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 48px 32px;
    text-align: center;
    max-width: 540px;
    margin: 40px auto;
}

.owl-upgrade-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.owl-training-upgrade-notice h3 {
    color: #ffffff !important;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.owl-training-upgrade-notice p {
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.6;
}

.owl-training-notice {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    color: #888;
}

.owl-training-notice a {
    color: var(--owl-green, #00AA44);
}

.owl-training-empty {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    color: #666;
}

/* ── Dashboard Stat Box ──────────────────────────────────── */
.owl-training-stat-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.owl-training-stat-title {
    color: #aaa;
    font-size: 0.8rem;
    margin: 2px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owl-training-stat-bar-wrap {
    background: #333;
    border-radius: 3px;
    height: 5px;
    overflow: hidden;
    margin: 6px 0;
}

.owl-training-stat-bar {
    background: var(--owl-green, #00AA44);
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .owl-training-header {
        flex-direction: column;
        padding: 20px;
    }

    .owl-training-header-right {
        align-items: flex-start;
        min-width: 0;
        width: 100%;
    }

    .owl-phase-card {
        grid-template-columns: 48px 1fr 24px;
        gap: 12px;
    }

    .owl-phase-progress {
        display: none;
    }

    .owl-lesson-row {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }

    .owl-lesson-action {
        grid-column: 1 / -1;
    }

    .owl-lesson-header {
        flex-direction: column;
        gap: 12px;
        padding: 18px 20px;
    }

    .owl-lesson-content {
        padding: 20px;
    }

    .owl-lesson-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .owl-mark-complete-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* ============================================================
   PHASE 1 — START HERE SPECIAL TREATMENT
   ============================================================ */

.owl-phase-first {
    position: relative;
    padding: 28px 24px 28px 24px !important;
    border: 2px solid #ffd700 !important;
    border-left: 6px solid #ffd700 !important;
    background: linear-gradient(135deg, #1a1800 0%, #1a1a1a 60%) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
    /* Larger feel */
    transform: none;
    margin-bottom: 6px;
}

.owl-phase-first:hover {
    background: linear-gradient(135deg, #222200 0%, #222 60%) !important;
    transform: translateX(3px);
    box-shadow: 0 6px 28px rgba(255, 215, 0, 0.25);
}

.owl-phase-first .owl-phase-name {
    font-size: 1.25rem !important;
    color: #ffd700 !important;
}

.owl-phase-first .owl-phase-icon {
    font-size: 2.6rem !important;
}

.owl-phase-first .owl-phase-arrow {
    color: #ffd700;
}

/* Start Here badge */
.owl-phase-first-badge {
    position: absolute;
    top: -13px;
    left: 24px;
    background: #ffd700;
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.owl-phase-first .owl-phase-progress-bar {
    background: #ffd700 !important;
}

/* ============================================================
   CRITICAL LESSONS — amber row highlight
   ============================================================ */

.owl-lesson-row.owl-lesson-critical {
    background: #1f1500 !important;
    border-color: #cc6600 !important;
    border-left: 3px solid #ff8800 !important;
}

.owl-lesson-row.owl-lesson-critical:hover {
    background: #2a1c00 !important;
}

.owl-lesson-row.owl-lesson-critical .owl-lesson-title a {
    color: #ffcc88 !important;
}

.owl-lesson-row.owl-lesson-critical .owl-lesson-title a:hover {
    color: #ff8800 !important;
}

.owl-tag-critical {
    background: #2a1000;
    color: #ff8800;
    border: 1px solid #cc4400;
}

/* Critical lesson — keep completed state readable */
.owl-lesson-row.owl-lesson-critical.owl-lesson-complete {
    background: #141000 !important;
    opacity: 0.7;
}
