/* =============================================================
   live-lessons.css
============================================================= */

/* ─────────────────────────────────────────────────────────────
   1. PAGE WRAPPER & LAYOUT
───────────────────────────────────────────────────────────── */

.ll-wrapper {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--space-5);
    padding-block: var(--space-7);
    font-family: var(--font-body);
    color: var(--c-body);
}

/* Two-column layout: lesson feed + sidebar */
.ll-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-6);
    align-items: start;
    margin-top: var(--space-5);
}

/* Feed (lesson cards column) */
.ll-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ─────────────────────────────────────────────────────────────
   2. HERO
───────────────────────────────────────────────────────────── */

.ll-hero {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-6) var(--space-5);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-5);
}

.ll-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-5);
}

.ll-hero-text {
    flex: 1;
    min-width: 0;
}

/* Eyebrow */
.ll-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: var(--space-2);
}

.ll-eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-primary);
    animation: ll-pulse 2.4s ease-in-out infinite;
}

@keyframes ll-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.82); }
}

.ll-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--c-title);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-2);
}

.ll-hero-sub {
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--c-muted);
    margin: 0;
    max-width: 52ch;
}

/* Decorative SVG mark */
.ll-hero-mark {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    opacity: 0.9;
}

/* Stat tray — row of chips below the hero text */
.ll-stat-tray {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-border);
}

.ll-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px var(--space-3);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--c-body);
}

.ll-stat-chip strong {
    font-weight: 700;
    color: var(--c-title);
}

.ll-stat-chip--link {
    color: var(--c-primary);
    border-color: var(--c-primary-soft);
    background: var(--c-primary-soft);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.ll-stat-chip--link:hover,
.ll-stat-chip--link:focus-visible {
    background: rgba(37, 99, 235, 0.18);
    border-color: var(--c-primary);
    outline: none;
}

.ll-stat-chip--link:focus-visible {
    box-shadow: var(--focus-ring);
}

/* ─────────────────────────────────────────────────────────────
   3. TOOLBAR (tabs + timezone select)
───────────────────────────────────────────────────────────── */

.ll-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

/* Tab strip */
.ll-tabs {
    display: flex;
    gap: 2px;
}

.ll-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px var(--space-4);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-muted);
    text-decoration: none;
    transition: background 0.13s, color 0.13s;
}

.ll-tab:hover {
    background: var(--c-bg);
    color: var(--c-body);
}

.ll-tab--active {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-weight: 600;
}

.ll-tab:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.ll-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--c-primary);
    color: #fff;
}

.ll-tab:not(.ll-tab--active) .ll-tab-badge {
    background: var(--c-border-strong);
    color: var(--c-muted);
}

/* Toolbar right-side controls */
.ll-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--c-bg) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 10px;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-xs);
    padding: 7px 28px 7px var(--space-3);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--c-body);
    cursor: pointer;
    transition: border-color 0.13s;
}

.ll-select:hover   { border-color: var(--c-primary); }
.ll-select:focus   { outline: none; box-shadow: var(--focus-ring); border-color: var(--c-primary); }

/* One-on-one toolbar extras */
.oo-toolbar-controls {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.oo-date-input {
    padding-right: var(--space-3); 
    background-image: none;
}

/* ─────────────────────────────────────────────────────────────
   4. LESSON CARD
───────────────────────────────────────────────────────────── */

.ll-card {
    display: flex;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    animation: ll-card-in 0.3s ease both;
    animation-delay: calc(var(--card-index, 0) * 55ms);
}

@keyframes ll-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Thumbnail ── */
.ll-thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    min-height: 140px;
    background: var(--c-bg);
    overflow: hidden;
}

.ll-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ll-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--c-bg) 0%, rgba(37,99,235,0.06) 100%);
}

/* Live / 1:1 badge in thumb */
.ll-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-xs);
    white-space: nowrap;
}

.ll-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: ll-pulse 2s ease-in-out infinite;
}

/* ── Card body ── */
.ll-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
}

.ll-card-top {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ll-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-title);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
}

.ll-card-desc {
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--c-muted);
    margin: 0;
}

/* ── Status pill ── */
.ll-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    width: fit-content;
}

.ll-pill--open      { background: #dcfce7; color: #166534; }
.ll-pill--full      { background: #fef3c7; color: #92400e; }
.ll-pill--done      { background: #eff6ff; color: #1d4ed8; }
.ll-pill--cancelled { background: #fef2f2; color: #991b1b; }

/* ── Instructor byline: avatar + name inline ── */
.ll-byline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-1);
}

.ll-byline-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--c-border-strong);
    flex-shrink: 0;
}

.ll-byline-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 0.65rem;
    font-weight: 700;
}

.ll-byline-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-muted);
    text-decoration: none;
}

a.ll-byline-name:hover {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Meta row ── */
.ll-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: var(--space-2);
    border-top: 1px solid var(--c-border);
}

.ll-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--c-muted);
}

.ll-meta-item svg {
    flex-shrink: 0;
    color: var(--c-muted);
}

.ll-meta-item--warn {
    color: var(--c-accent);
    font-weight: 500;
}

.ll-meta-item--warn svg {
    color: var(--c-accent);
}

/* ── Card footer: price + CTA ── */
.ll-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--c-border);
}

.ll-price-wrap {
    display: flex;
    align-items: center;
}

.ll-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-title);
}

.ll-price ins  { text-decoration: none; }
.ll-price del  { opacity: 0.45; font-size: 0.85em; margin-right: 4px; }

.ll-price-free {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

/* ─────────────────────────────────────────────────────────────
   5. BUTTONS
───────────────────────────────────────────────────────────── */

.ll-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px var(--space-4);
    border-radius: var(--radius-xs);
    font-family: var(--font-body);
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    /* Default: filled primary */
    background: var(--c-primary);
    color: #fff;
    border: none;
}

.ll-btn:hover {
    background: var(--c-primary-dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.ll-btn:active  { transform: translateY(0); }
.ll-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Outline variant */
.ll-btn--outline {
    background: transparent;
    color: var(--c-primary);
    border: 1.5px solid var(--c-primary);
}

.ll-btn--outline:hover {
    background: var(--c-primary-soft);
    box-shadow: none;
}

/* Ghost (disabled states) */
.ll-btn--ghost {
    background: var(--c-bg);
    color: var(--c-muted);
    border: 1.5px solid var(--c-border);
    cursor: default;
    pointer-events: none;
}

.ll-btn--full      { color: #92400e; border-color: #fde68a; background: #fef9c3; }
.ll-btn--done      { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.ll-btn--cancelled { color: #991b1b; border-color: #fecaca; background: #fef2f2; }

/* Accent variant (sidebar promo) */
.ll-btn--accent {
    background: var(--c-accent);
    color: #fff;
}

.ll-btn--accent:hover {
    background: #ea6600;
}

/* Block (full-width) */
.ll-btn--block {
    width: 100%;
    justify-content: center;
}

/* 1:1 private slot CTA (indigo) */
.oo-btn-private {
    background: var(--c-primary);
}

/* ─────────────────────────────────────────────────────────────
   6. SIDEBAR WIDGETS  
───────────────────────────────────────────────────────────── */

.ll-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: var(--space-5);
}

.ll-widget {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-xs);
}

/* Accent widget (promo / callout) */
.ll-widget--accent {
    display: flex;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-color: rgba(37, 99, 235, 0.15);
    gap: 8px;
    flex-direction: column;
}

/* Stat badge widget */
.ll-widget--stat {
    text-align: center;
    background: linear-gradient(135deg, var(--c-primary-soft) 0%, rgba(37,99,235,0.04) 100%);
    border-color: rgba(37, 99, 235, 0.15);
}

.ll-widget-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-title);
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-3);
}

.ll-widget-body {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--c-muted);
    margin: 0;
}

/* Stat numbers */
.ll-stat-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.ll-stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* How-it-works steps */
.ll-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ll-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.ll-step-icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.ll-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ll-step-text strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-title);
}

.ll-step-text span {
    font-size: 0.78rem;
    color: var(--c-muted);
    line-height: 1.5;
}

/* Filter form */
.ll-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-3);
}

.ll-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ll-input {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-xs);
    padding: 7px var(--space-3);
    font-family: var(--font-body);
    font-size: 0.83rem;
    color: var(--c-body);
    background: var(--c-bg);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.13s;
}

.ll-input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: var(--focus-ring);
}

.ll-reset-btn {
    width: 100%;
    padding: 7px;
    border: 1.5px dashed var(--c-border-strong);
    border-radius: var(--radius-xs);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-muted);
    cursor: pointer;
    transition: border-color 0.13s, color 0.13s;
}

.ll-reset-btn:hover        { border-color: var(--c-primary); color: var(--c-primary); }
.ll-reset-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ─────────────────────────────────────────────────────────────
   7. EMPTY STATE
───────────────────────────────────────────────────────────── */

.ll-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: var(--c-surface);
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--radius-md);
    color: var(--c-muted);
}

.ll-empty-icon {
    font-size: 2.4rem;
    margin-bottom: var(--space-3);
    opacity: 0.6;
}

.ll-empty-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-title);
    margin: 0 0 var(--space-1);
}

.ll-empty-body {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   8. ONE-ON-ONE OVERRIDES (.oo-*)
───────────────────────────────────────────────────────────── */

/* Hero eyebrow dot — indigo tint for 1:1 page */
.oo-eyebrow-dot {
    background: var(--c-primary);
}

.oo-hero .ll-eyebrow {
    color: var(--c-primary);
}

/* Page content blurb under hero sub */
.oo-page-content {
    font-size: 0.85rem;
    color: var(--c-muted);
    line-height: 1.65;
    margin-top: var(--space-2);
}

/* Private badge (thumb corner) */
.oo-badge-private {
    color: var(--c-primary);
}

/* Pill row (available + private side by side) */
.oo-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* "Private 1:1" secondary pill */
.oo-pill-private {
    background: rgba(79, 70, 229, 0.10);
    color: #4338ca;
}

/* ─────────────────────────────────────────────────────────────
   9. RESPONSIVENESS
   Breakpoints:
     tablet : ≤ 900px  
     mobile : ≤ 600px  
───────────────────────────────────────────────────────────── */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
    .ll-layout {
        display: grid;                        
        grid-template-columns: 1fr;
    }

    .ll-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--space-4);
    }

    .ll-widget--stat {
        grid-column: 1 / -1; 
    }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
    .ll-wrapper {
        padding-inline: var(--space-4);
        padding-block: var(--space-6);
    }

    /* Hero */
    .ll-hero {
        padding: var(--space-4);
    }

    .ll-hero-inner {
        flex-direction: column-reverse;
        gap: var(--space-3);
    }

    .ll-hero-mark {
        width: 72px;
        height: 72px;
        align-self: flex-end;
        opacity: 0.6;
    }

    .ll-stat-tray {
        gap: var(--space-1);
    }

    /* Toolbar */
    .ll-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
        padding: var(--space-3);
    }

    .ll-tabs {
        width: 100%;
    }

    .ll-tab {
        flex: 1;
        justify-content: center;
        padding: 9px var(--space-2);
    }

    .ll-select {
        width: 100%;
    }

    .oo-toolbar-controls {
        flex-direction: column;
    }

    .oo-toolbar-controls .ll-select,
    .oo-toolbar-controls .oo-date-input {
        width: 100%;
    }

    /* Cards: stack thumb on top of body */
    .ll-card {
        flex-direction: column;
    }

    .ll-thumb {
        width: 100%;
        min-height: 120px;
        max-height: 140px;
    }

    .ll-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .ll-btn {
        width: 100%;
        justify-content: center;
    }
.ll-thumb {
    width: 100%;
    min-height: 120px;
    max-height: 140px;
    position: relative;     
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-thumb .ll-thumb-placeholder {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:none;
}

.ll-layout {
    display: flex;
    flex-direction: column-reverse; 
    align-items: stretch;
}

.ll-sidebar {
    grid-template-columns: 1fr;
    position: static;
}

.ll-sidebar .ll-widget:not(:first-child) {
    display: none;
} 
}

/* ─────────────────────────────────────────────────────────────
   10. ACCESSIBILITY / REDUCED MOTION
───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .ll-card,
    .ll-btn,
    .ll-tab,
    .ll-stat-chip--link {
        transition: none;
        animation: none;
    }

    .ll-eyebrow-dot,
    .ll-live-dot {
        animation: none;
    }
}



