/**
 * LightSkai - Your Coach Page Styles
 * 
 * Uses CSS variables from theme.css for consistent theming.
 * Dark theme overrides are scoped to .dark-theme selector.
 */

/* ========================================
   CSS Variable Defaults (Fallbacks)
   These are overridden by branding-colors.js
   ======================================== */
:root {
    --brand-primary: #0EA5E9;
    --brand-primary-rgb: 14, 165, 233;
    --brand-secondary: #0EA5E9;
    --brand-secondary-rgb: 14, 165, 233;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    color: var(--text-primary);
}

/* ========================================
   Main Container
   ======================================== */
.yc-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    padding-bottom: 0;
}

/* ========================================
   Banner Section
   ======================================== */
.yc-banner-container {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.yc-banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 140px;
    object-fit: cover;
}

/* ========================================
   Two Column Layout
   ======================================== */
.yc-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 24px;
    align-items: stretch;
}

/* ========================================
   Page Footer
   ======================================== */
.yc-page-footer {
    width: 100%;
    text-align: center;
    padding: 24px 16px;
    margin-top: 24px;
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   Confirmation Modal
   ======================================== */
.yc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.yc-modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: yc-modal-appear 0.2s ease-out;
}

@keyframes yc-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.yc-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

.yc-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.yc-modal-text {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 0 0 24px;
}

.yc-modal-text strong {
    color: var(--text-secondary);
}

.yc-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.yc-modal-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.yc-modal-cancel {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-tertiary);
}

.yc-modal-cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
}

.yc-modal-confirm {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
}

.yc-modal-confirm:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ========================================
   Responsive Breakpoints
   ======================================== */
@media (max-width: 1100px) {
    .yc-grid {
        grid-template-columns: 1fr;
    }
    
    .yc-eval-header {
        padding: 24px;
    }
    
    .yc-eval-title {
        font-size: 24px;
    }
    
    .yc-eval-stars {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 600px) {
    .yc-eval-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    
    .yc-eval-title {
        font-size: 20px;
    }
    
    .yc-eval-subtitle {
        font-size: 14px;
    }
    
    .yc-features-grid {
        grid-template-columns: 1fr;
    }
    
    .yc-feature-item {
        padding: 16px;
    }
}

/* ========================================
   Card Base Styles
   ======================================== */
.yc-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-primary);
}

/* ========================================
   LEFT COLUMN: Coach Profile Card
   ======================================== */
.yc-coach-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.yc-coach-header {
    background: var(--brand-primary);
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--brand-primary) 65%, black) 0%, 
        var(--brand-primary) 100%);
    color: white;
    padding: 18px 24px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 20px 20px 0 0;
}

.yc-coach-body {
    padding: 12px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Video Toggle in body (above photo) */
.yc-coach-body .yc-video-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    padding: 0;
    margin-bottom: 12px;
}

.yc-coach-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 13px;
    margin-bottom: 0;
    position: relative;
}

.yc-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    width: 280px;
    text-align: left;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.yc-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--text-primary);
}

/* Coach Photo - Large and prominent */
.yc-coach-photo-container {
    width: 100%;
    flex: 1;
    min-height: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, var(--border-primary) 0%, var(--border-secondary) 100%);
}

.yc-coach-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yc-coach-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #1e3a8a 0%, #6366f1 100%);
}

/* Coach Info (Name & Title) */
.yc-coach-info {
    text-align: center;
    padding: 16px 16px 8px;
}

.yc-coach-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.yc-coach-icon {
    font-size: 16px;
}

.yc-coach-title {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Video Toggle (standalone) */
.yc-video-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
}

.yc-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.yc-toggle-switch {
    position: relative;
    width: 46px;
    height: 24px;
}

.yc-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.yc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-secondary);
    border-radius: 24px;
    transition: 0.3s;
}

.yc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.yc-toggle-switch input:checked + .yc-toggle-slider {
    background: var(--brand-primary);
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--brand-primary) 65%, black) 0%, 
        var(--brand-primary) 100%);
}

.yc-toggle-switch input:checked + .yc-toggle-slider:before {
    transform: translateX(22px);
}

.yc-toggle-credits {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Toggle Tooltip */
.yc-toggle-tooltip {
    display: inline-flex;
    margin-left: 6px;
    vertical-align: middle;
}

/* Small info icon for tooltips */
.yc-toggle-tooltip .yc-info-icon,
.yc-info-tooltip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
    position: relative;
    color: var(--text-tertiary);
    font-weight: 600;
}

.yc-toggle-tooltip .yc-info-icon {
    width: 16px;
    height: 16px;
    font-size: 11px;
}

.yc-toggle-tooltip .yc-info-icon:hover .yc-tooltip,
.yc-info-tooltip-icon:hover .yc-tooltip {
    opacity: 1;
    visibility: visible;
}

.yc-toggle-tooltip .yc-tooltip {
    bottom: calc(100% + 10px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    white-space: normal;
}

.yc-toggle-tooltip .yc-tooltip::after {
    top: 100%;
    bottom: auto;
    border-bottom-color: transparent;
    border-top-color: var(--text-primary);
}

/* ========================================
   Includes Card - below upload
   ======================================== */
.yc-includes-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-primary);
    padding: 24px 40px;
    margin-top: 16px;
    text-align: center;
}

.yc-includes-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 12px;
    color: #1e3a8a;
}

.yc-includes-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.yc-includes-text {
    font-size: 17px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* Right Column Wrapper */
.yc-right-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
}

/* ========================================
   INFO CARD (above upload)
   ======================================== */
.yc-info-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
    box-shadow: var(--shadow-card);
}

.yc-info-card.yc-info-ready {
    align-items: center;
}

.yc-info-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

.yc-info-card.yc-info-ready .yc-info-card-icon {
    background: transparent;
}

.yc-info-text {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-secondary);
    flex: 1;
}

.yc-info-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.yc-info-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.yc-info-btn:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* ========================================
   EVALUATION HEADER CARD (New Design)
   ======================================== */
.yc-eval-header {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

.yc-eval-stars {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}

.yc-eval-stars svg {
    width: 100%;
    height: 100%;
}

.yc-eval-content {
    flex: 1;
}

.yc-eval-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.yc-eval-subtitle {
    font-size: 16px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ========================================
   FEATURE CARDS (3-column)
   ======================================== */
.yc-features-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    margin-top: 0;
    margin-bottom: 0;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-card);
}

.yc-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .yc-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.yc-feature-item {
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    border: 1px solid #e8ecf1;
    transition: all 0.25s ease;
}

.yc-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #d1d9e6;
}

.yc-feature-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.yc-feature-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.15) 0%, rgba(var(--brand-primary-rgb), 0.08) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yc-feature-icon svg {
    width: 18px;
    height: 18px;
    color: var(--brand-primary);
}

.yc-feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0;
}

.yc-feature-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0;
}

/* Coaching Moment - Video Toggle OFF State */
.yc-feature-item.yc-video-disabled {
    opacity: 0.5;
    filter: grayscale(30%);
}

.yc-feature-item.yc-video-disabled .yc-feature-title {
    color: var(--text-muted);
}

.yc-feature-item.yc-video-disabled .yc-feature-icon {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-primary) 100%);
}

.yc-feature-item.yc-video-disabled .yc-feature-icon svg {
    color: var(--text-muted);
}

.yc-video-off-badge {
    display: none;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: auto;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.yc-feature-item.yc-video-disabled .yc-video-off-badge {
    display: inline-block;
}

/* ========================================
   RIGHT COLUMN: Upload Card
   ======================================== */
.yc-upload-card {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: auto;
}

.yc-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-primary);
    border-radius: 20px 20px 0 0;
}

.yc-upload-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.yc-upload-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Upload Steps Container */
.yc-upload-step {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Upload Area - Step 1 */
.yc-upload-area {
    border: 2px dashed rgba(var(--brand-primary-rgb), 0.4);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    background: rgba(var(--brand-primary-rgb), 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yc-upload-area:hover,
.yc-upload-area.drag-over {
    border-color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), 0.08);
}

.yc-upload-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: var(--brand-primary);
}

.yc-upload-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.yc-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.yc-upload-subtext {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.yc-upload-subtext em {
    font-style: italic;
    color: var(--text-secondary);
}

.yc-upload-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 28px;
    background: var(--brand-secondary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yc-upload-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.yc-file-input {
    display: none;
}

/* Step 2: File Uploaded State */
.yc-file-uploaded {
    display: none;
}

.yc-file-uploaded.active {
    display: block;
}

.yc-file-chip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-primary);
}

.yc-file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--bg-card);
    border-radius: 10px;
}

.yc-file-info {
    flex: 1;
    min-width: 0;
}

.yc-file-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.yc-file-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

.yc-file-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.yc-file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Form Fields */
.yc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.yc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yc-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.yc-form-select {
    padding: 12px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.2s;
}

.yc-form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* Submit Button */
.yc-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: var(--brand-secondary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yc-submit-btn:hover:not(:disabled) {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--brand-secondary-rgb), 0.3);
}

.yc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.yc-submit-btn svg {
    width: 20px;
    height: 20px;
}

.yc-credit-info {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ========================================
   Upload Progress Bar (Audio/Video)
   ======================================== */
.yc-upload-progress-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.05) 0%, rgba(var(--brand-primary-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
    border-radius: 12px;
}

.yc-upload-progress-container.active {
    display: block;
}

.yc-upload-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.yc-upload-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.yc-upload-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-primary);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: yc-spin 1s linear infinite;
}

@keyframes yc-spin {
    to { transform: rotate(360deg); }
}

.yc-upload-progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
}

.yc-upload-progress-bar {
    height: 8px;
    background: var(--border-primary);
    border-radius: 4px;
    overflow: hidden;
}

.yc-upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.yc-upload-progress-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   Step 3: Processing State
   ======================================== */
.yc-processing {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.yc-processing.active {
    display: block;
}

.yc-ai-stars {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.yc-ai-stars svg {
    width: 100%;
    height: 100%;
}

.yc-star-large {
    animation: yc-float 3s ease-in-out infinite;
}

.yc-star-medium {
    animation: yc-float 2.5s ease-in-out infinite 0.3s;
}

.yc-star-small {
    animation: yc-float 2s ease-in-out infinite 0.6s;
}

@keyframes yc-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.yc-processing-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.yc-processing-subtitle {
    font-size: 15px;
    color: var(--text-tertiary);
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.yc-progress-bar {
    height: 6px;
    background: var(--border-primary);
    border-radius: 3px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto 24px;
}

.yc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c026d3 0%, #7c3aed 50%, #06b6d4 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Processing Stages */
.yc-processing-stages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.yc-stage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.yc-stage-item.active {
    color: var(--brand-primary);
    font-weight: 600;
}

.yc-stage-item.completed {
    color: #22c55e;
}

.yc-stage-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ========================================
   Step 4: Results View
   ======================================== */
.yc-results-container {
    display: none;
    flex-direction: column;
    height: 100%;
}

.yc-results-container.active {
    display: flex;
}

.yc-results-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 20px;
}

.yc-results-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 12px;
    font-size: 24px;
}

.yc-results-info {
    flex: 1;
}

.yc-results-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.yc-results-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Results Header Bar with Score */
.yc-results-header-bar {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), 0.15);
}

.yc-results-header-bar .yc-results-title {
    font-size: 16px;
    color: var(--brand-primary);
    margin: 0;
}

.yc-results-score-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yc-score-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.yc-score-text strong {
    font-size: 18px;
    color: var(--text-primary);
}

.yc-grade-badge {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
}

.yc-grade-badge.grade-a { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.yc-grade-badge.grade-b { background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%); }
.yc-grade-badge.grade-c { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); }
.yc-grade-badge.grade-d { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.yc-grade-badge.grade-f { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

/* Results Content */
.yc-results-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

/* Accordion */
.yc-accordion-section {
    margin-bottom: 12px;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.yc-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: background 0.2s;
}

.yc-accordion-header:hover {
    background: var(--bg-tertiary);
}

.yc-accordion-icon {
    font-size: 20px;
}

.yc-accordion-title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.yc-accordion-badge {
    padding: 4px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.yc-accordion-badge.resolved {
    background: #dcfce7;
    color: #15803d;
}

.yc-accordion-chevron {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.yc-accordion-section.open .yc-accordion-chevron {
    transform: rotate(180deg);
}

.yc-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.yc-accordion-section.open .yc-accordion-content {
    max-height: 2000px;
}

.yc-accordion-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-primary);
}

.yc-accordion-body p {
    margin-bottom: 12px;
}

.yc-accordion-body p:last-child {
    margin-bottom: 0;
}

.yc-accordion-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.yc-accordion-body li {
    margin-bottom: 8px;
}

.yc-accordion-body strong {
    color: var(--text-primary);
}

/* Results Navigation */
.yc-results-nav {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-primary);
    margin-top: 20px;
    flex-wrap: wrap;
}

.yc-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.yc-nav-btn.yc-nav-new {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, color-mix(in srgb, var(--brand-secondary) 85%, black) 100%);
    border: none;
    color: white;
}

.yc-nav-btn.yc-nav-new:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.yc-nav-btn.yc-nav-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.yc-nav-btn.yc-nav-dashboard:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.yc-nav-btn.yc-nav-library {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.yc-nav-btn.yc-nav-library:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.yc-nav-btn.yc-nav-print {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.yc-nav-btn.yc-nav-print:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* ========================================
   Toast Notifications
   ======================================== */
.yc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.yc-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.yc-toast.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.yc-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.yc-toast.info {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white !important;
    }
    
    .yc-container {
        max-width: none;
        padding: 0;
    }
    
    .yc-banner-container,
    .yc-coach-card,
    .yc-info-card,
    .yc-features-card,
    .yc-eval-header,
    .yc-nav-btn,
    .yc-results-nav,
    .yc-toggle-switch,
    .yc-toast {
        display: none !important;
    }
    
    .yc-grid {
        display: block;
    }
    
    .yc-card {
        box-shadow: none;
        border: 1px solid var(--border-primary);
    }
    
    .yc-accordion-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .yc-accordion-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid var(--border-primary) !important;
        margin-bottom: 10px !important;
    }
    
    .yc-accordion-header {
        background: var(--bg-secondary) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .yc-accordion-chevron,
    .yc-accordion-toggle {
        display: none !important;
    }
    
    /* Print header */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #3b82f6;
    }
    
    .print-header h1 {
        font-size: 24px;
        color: var(--text-primary);
        margin: 0 0 5px 0;
    }
    
    .print-header p {
        font-size: 14px;
        color: var(--text-tertiary);
        margin: 0;
    }
}

/* Hidden by default, shown only in print */
.print-header {
    display: none;
}

/* ========================================
   Dark Theme Overrides
   ======================================== */
.dark-theme body {
    background: var(--bg-body-solid);
    color: var(--text-primary);
}

.dark-theme .yc-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--border-primary);
}

.dark-theme .yc-upload-title,
.dark-theme .yc-file-name {
    color: var(--text-primary);
}

.dark-theme .yc-upload-text {
    color: var(--text-primary);
}

.dark-theme .yc-upload-area {
    background: rgba(var(--brand-primary-rgb), 0.08);
    border-color: rgba(var(--brand-primary-rgb), 0.3);
}

.dark-theme .yc-upload-area:hover {
    background: rgba(var(--brand-primary-rgb), 0.15);
}

.dark-theme .yc-upload-subtext,
.dark-theme .yc-coach-subtitle,
.dark-theme .yc-file-meta,
.dark-theme .yc-form-label,
.dark-theme .yc-credit-info {
    color: var(--text-muted);
}

.dark-theme .yc-coach-name {
    color: var(--text-primary);
}

.dark-theme .yc-file-chip {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--border-primary);
}

/* Dark theme: Upload Progress Bar */
.dark-theme .yc-upload-progress-container {
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.1) 0%, rgba(var(--brand-primary-rgb), 0.05) 100%);
    border-color: rgba(var(--brand-primary-rgb), 0.2);
}

.dark-theme .yc-upload-progress-text {
    color: var(--text-secondary);
}

.dark-theme .yc-upload-progress-bar {
    background: var(--bg-tertiary);
}

.dark-theme .yc-upload-progress-hint {
    color: var(--text-muted);
}

.dark-theme .yc-page-footer {
    color: var(--text-muted);
}

.dark-theme .yc-modal {
    background: var(--bg-card);
}

.dark-theme .yc-modal-icon {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%);
    color: #38bdf8;
}

.dark-theme .yc-modal-title {
    color: var(--text-primary);
}

.dark-theme .yc-modal-text {
    color: var(--text-muted);
}

.dark-theme .yc-modal-text strong {
    color: var(--text-secondary);
}

.dark-theme .yc-modal-cancel {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
    color: var(--text-secondary);
}

.dark-theme .yc-modal-cancel:hover {
    background: var(--border-secondary);
    border-color: var(--text-muted);
}

.dark-theme .yc-info-tooltip-icon,
.dark-theme .yc-toggle-tooltip .yc-info-icon {
    background: rgba(51, 65, 85, 0.8);
    color: var(--text-muted);
}

.dark-theme .yc-toggle-label {
    color: var(--text-secondary);
}

.dark-theme .yc-form-select {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

.dark-theme .yc-processing-stages {
    background: rgba(30, 41, 59, 0.8);
}

.dark-theme .yc-includes-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--border-primary);
}

.dark-theme .yc-includes-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.dark-theme .yc-includes-text {
    color: var(--text-muted);
}

.dark-theme .yc-info-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(56, 189, 248, 0.2);
}

.dark-theme .yc-info-card-icon {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%);
    color: #38bdf8;
}

.dark-theme .yc-info-text {
    color: var(--text-secondary);
}

.dark-theme .yc-info-text strong {
    color: var(--text-primary);
}

.dark-theme .yc-info-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.dark-theme .yc-info-btn:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

/* Dark Theme: Evaluation Header */
.dark-theme .yc-eval-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(56, 189, 248, 0.2);
}

.dark-theme .yc-eval-title {
    color: var(--text-primary);
}

.dark-theme .yc-eval-subtitle {
    color: var(--text-muted);
}

/* Dark Theme: Feature Cards */
.dark-theme .yc-features-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--border-primary);
}

.dark-theme .yc-feature-item {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
    border-color: rgba(71, 85, 105, 0.4);
}

.dark-theme .yc-feature-item:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme .yc-feature-icon {
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.25) 0%, rgba(var(--brand-primary-rgb), 0.15) 100%);
}

.dark-theme .yc-feature-icon svg {
    color: var(--brand-primary);
}

.dark-theme .yc-feature-title {
    color: var(--text-primary);
}

.dark-theme .yc-feature-desc {
    color: var(--text-muted);
}

.dark-theme .yc-feature-item.yc-video-disabled {
    opacity: 0.5;
}

.dark-theme .yc-feature-item.yc-video-disabled .yc-feature-title {
    color: var(--text-muted);
}

.dark-theme .yc-feature-item.yc-video-disabled .yc-feature-icon {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.dark-theme .yc-feature-item.yc-video-disabled .yc-feature-icon svg {
    color: var(--text-muted);
}

.dark-theme .yc-video-off-badge {
    background: rgba(51, 65, 85, 0.6);
    color: var(--text-muted);
}

.dark-theme .yc-upload-header {
    border-bottom-color: var(--border-primary);
}

.dark-theme .yc-results-header-bar {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-bottom-color: rgba(56, 189, 248, 0.2);
}

.dark-theme .yc-results-header-bar .yc-results-title {
    color: #38bdf8;
}

.dark-theme .yc-score-text {
    color: var(--text-secondary);
}

.dark-theme .yc-score-text strong {
    color: var(--text-primary);
}

.dark-theme .yc-accordion-section {
    border-color: var(--border-primary);
}

.dark-theme .yc-accordion-header {
    background: var(--bg-tertiary);
}

.dark-theme .yc-accordion-header:hover {
    background: var(--border-secondary);
}

.dark-theme .yc-accordion-title {
    color: var(--text-primary);
}

.dark-theme .yc-accordion-body {
    color: var(--text-tertiary);
    border-top-color: var(--border-primary);
}

.dark-theme .yc-accordion-body strong {
    color: var(--text-secondary);
}

.dark-theme .yc-results-nav {
    border-top-color: var(--border-primary);
}

.dark-theme .yc-nav-btn.yc-nav-dashboard,
.dark-theme .yc-nav-btn.yc-nav-library,
.dark-theme .yc-nav-btn.yc-nav-print {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

.dark-theme .yc-nav-btn.yc-nav-dashboard:hover,
.dark-theme .yc-nav-btn.yc-nav-library:hover,
.dark-theme .yc-nav-btn.yc-nav-print:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.dark-theme .yc-processing-title {
    color: var(--text-primary);
}

.dark-theme .yc-processing-subtitle {
    color: var(--text-tertiary);
}

.dark-theme .yc-stage-item {
    color: var(--text-muted);
}

.dark-theme .yc-stage-item.active {
    color: var(--brand-primary);
}

.dark-theme .yc-tooltip {
    background: var(--bg-tertiary);
}

.dark-theme .yc-tooltip::after {
    border-top-color: var(--bg-tertiary);
}
