/*
 * SLS Workflow Base Styles
 * CSS Variables, Typography, Base Layout, and Core Components
 * Sprint 7.3: Extracted from monolithic sls-workflow-public.css
 */

/* ===========================================
   SPRINT 1.7 - TASK 1.7.18: TYPOGRAPHY
   Import Montserrat font to match main site
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ===========================================
   SLS Brand Color Variables (Sprint 1.7)
   =========================================== */
:root {
    /* Primary Brand Colors */
    --sls-black: #000000;
    --sls-dark-gray: #1A1515;
    --sls-gray: #363636;

    /* Accent Colors */
    --sls-blue: #8BA2C9;
    --sls-purple: #6d3f77;
    --sls-soft-blue: #798cb1;

    /* Text Colors */
    --sls-text-light: #ffffff;
    --sls-text-muted: #cccccc;
    --sls-text-gray: #999999;

    /* UI Elements */
    --sls-border: rgba(139, 162, 201, 0.3);
    --sls-border-light: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --sls-gradient-primary: linear-gradient(135deg, #6d3f77 0%, #798cb1 100%);
    --sls-gradient-accent: linear-gradient(90deg, #8BA2C9 0%, #798cb1 100%);

    /* Standard Measurements */
    --sls-border-radius: 20px;
    --sls-border-radius-sm: 12px;
    --sls-border-radius-xs: 6px;

    /* Typography - Sprint 1.7 Task 1.7.18 */
    --sls-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sls-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --sls-font-size-h1: 40px;
    --sls-font-size-h2: 28px;
    --sls-font-size-h3: 22px;
    --sls-font-size-h4: 18px;
    --sls-font-size-body: 16px;
    --sls-font-size-small: 14px;

    --sls-line-height-heading: 1.3;
    --sls-line-height-body: 1.6;

    --sls-font-weight-normal: 400;
    --sls-font-weight-medium: 500;
    --sls-font-weight-semibold: 600;
    --sls-font-weight-bold: 700;
}

/* ===========================================
   UTILITY CLASSES
   Sprint 11.6: Inline style utilities
   =========================================== */

/* Display Utilities - Issue #14 Fix */
.hidden {
    display: none !important;
}

/* Spacing Utilities */
.sls-m-0 { margin: 0; }
.sls-mt-5 { margin-top: 5px; }
.sls-mt-6 { margin-top: 6px; }
.sls-mt-8 { margin-top: 8px; }
.sls-mt-10 { margin-top: 10px; }
.sls-mt-12 { margin-top: 12px; }
.sls-mt-15 { margin-top: 15px; }
.sls-mt-20 { margin-top: 20px; }
.sls-mt-40 { margin-top: 40px; }
.sls-mb-5 { margin-bottom: 5px; }
.sls-mb-10 { margin-bottom: 10px; }
.sls-mb-15 { margin-bottom: 15px; }
.sls-mb-20 { margin-bottom: 20px; }
.sls-mb-25 { margin-bottom: 25px; }
.sls-mb-2rem { margin-bottom: 2rem; }
.sls-mr-10 { margin-right: 10px; }
.sls-ml-15 { margin-left: 15px; }
.sls-m-4-0 { margin: 4px 0 0 0; }
.sls-m-6-0 { margin: 6px 0 0 0; }
.sls-m-12-0 { margin: 12px 0; }
.sls-m-0-auto { margin: 0 auto; }
.sls-m-40-auto { margin: 40px auto; }
.sls-p-0 { padding: 0; }
.sls-p-12 { padding: 12px; }
.sls-p-15 { padding: 15px; }
.sls-p-20 { padding: 20px; }
.sls-p-40 { padding: 40px; }
.sls-p-15-30 { padding: 15px 30px; }
.sls-p-0-20 { padding: 0 20px; }

/* Font Size Utilities */
.sls-fs-12 { font-size: 12px; }
.sls-fs-13 { font-size: 13px; }
.sls-fs-14 { font-size: 14px; }
.sls-fs-16 { font-size: 16px; }
.sls-fs-18 { font-size: 18px; }
.sls-fs-20 { font-size: 20px; }
.sls-fs-48 { font-size: 48px; }

/* Font Weight Utilities */
.sls-fw-500 { font-weight: 500; }
.sls-fw-600 { font-weight: 600; }
.sls-fw-700 { font-weight: 700; }

/* Line Height Utilities */
.sls-lh-1-4 { line-height: 1.4; }
.sls-lh-1-6 { line-height: 1.6; }

/* Color Utilities */
.sls-color-white { color: #fff; }
.sls-color-white-70 { color: rgba(255,255,255,0.7); }
.sls-color-muted { color: #999; }
.sls-color-dark-muted { color: #666; }
.sls-color-blue { color: #8BA2C9; }
.sls-color-primary { color: var(--sls-text-primary, #EFEFEF); }
.sls-color-gold { color: #ffd700; }
.sls-color-error { color: #c62828; }

/* Text Alignment Utilities */
.sls-text-center { text-align: center; }

/* Text Decoration Utilities */
.sls-text-underline {
    text-decoration: underline;
    cursor: pointer;
}

/* Max Width Utilities */
.sls-max-w-600 { max-width: 600px; }

/* Opacity Utilities */
.sls-opacity-50 { opacity: 0.5; }

/* Special Component Utilities */
.sls-emoji-lg {
    font-size: 48px;
    margin-bottom: 20px;
}

/* ===========================================
   COMPONENT CLASSES
   Sprint 11.6 Phase 2: MEDIUM risk patterns
   =========================================== */

/* Project ID Badge - Used across workflow renderers */
.sls-project-badge {
    float: right;
    font-size: 12px;
    color: var(--sls-text-muted, #999);
    background: var(--sls-dark-gray, #1A1515);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--sls-border, #363636);
    margin-left: 15px;
}

/* Phase Header Container */
.sls-phase-header-overflow {
    overflow: hidden;
}

/* Waiting Message Container */
.sls-waiting-container {
    margin-top: 40px;
    padding: 20px;
    background: var(--sls-dark-gray, #1A1515);
    border-radius: 12px;
    border: 1px solid var(--sls-border, #363636);
    text-align: center;
}

/* Error Message Container */
.sls-error-container {
    padding: 30px;
    background: var(--sls-warning-bg, #3A2F1F);
    border: 1px solid var(--sls-warning-border, #6B5A3D);
    border-radius: 12px;
    text-align: center;
}

/* Artwork Preview */
.sls-artwork-preview {
    max-width: 400px;
    border-radius: 8px;
}

/* Video Element - Standard Layout */
.sls-video-standard {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Reaction Actions Container */
.sls-reaction-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* iOS Loading Overlay Container */
.sls-ios-loading-overlay {
    padding: 40px;
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #1A1515;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* iOS Progress Bar Container */
.sls-ios-progress-container {
    margin-top: 30px;
    width: 100%;
    max-width: 300px;
}

/* iOS Progress Bar Track */
.sls-ios-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(139, 162, 201, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

/* iOS Progress Bar Fill */
.sls-ios-progress-fill {
    height: 100%;
    background: #8BA2C9;
    width: 0%;
    transition: width 0.3s ease;
}

/* Disabled Video Thumbnail */
.sls-video-thumbnail-disabled {
    position: relative;
    background: rgba(26, 21, 21, 0.8);
    cursor: default;
}

/* Disabled Thumbnail Overlay */
.sls-thumbnail-overlay-disabled {
    background: rgba(0, 0, 0, 0.85);
}

/* Warning Notice Box */
.sls-warning-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* Redirect Message */
.sls-redirect-message {
    margin-top: 10px;
    font-style: italic;
}

/* Button Spacing */
.sls-btn-mt-10 {
    margin-top: 10px;
}

.sls-emoji-md {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.sls-error-notice {
    background: #ffebee;
    padding: 20px;
    border-radius: 8px;
    color: #c62828;
}

/* ===========================================
   COMPONENT CLASSES
   Sprint 11.6 Phase 2: Repeated pattern consolidation
   =========================================== */

/* Project Badge - used across completion and other templates */
.sls-project-badge {
    float: right;
    font-size: 12px;
    color: var(--sls-text-muted, #999);
    background: var(--sls-dark-gray, #1A1515);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--sls-border, #363636);
    margin-left: 15px;
}

/* Empty State Gradient Background */
.sls-empty-state-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Primary Button with Gradient */
.sls-btn-gradient {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sls-btn-gradient:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

/* Headphones Notice - Yellow warning box */
.sls-headphones-notice {
    background: #ffd700;
    color: #000;
    border-radius: 8px;
}

/* Modal Upload Progress Overlay - Complex positioning for video preview */
.sls-modal-upload-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    padding: 20px;
    background: rgba(0,0,0,0.95);
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Modal Upload Progress Bar Background */
.sls-upload-progress-bg {
    width: 100%;
    background: rgba(139, 162, 201, 0.2);
    border-radius: 6px;
    overflow: hidden;
    height: 32px;
    border: 1px solid rgba(139, 162, 201, 0.4);
}

/* Modal Upload Progress Bar Fill */
.sls-upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6E8BB7 0%, #8BA2C9 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* ===========================================
   SPRINT 1.7 - TASK 1.7.18: GLOBAL TYPOGRAPHY
   Apply Montserrat and consistent sizing across all headings
   =========================================== */

/* All Headings - Montserrat Font */
h1, h2, h3, h4, h5, h6,
.woocommerce-account h1,
.woocommerce-account h2,
.woocommerce-account h3,
.woocommerce-account h4,
.sls-workflow-dashboard h1,
.sls-workflow-dashboard h2,
.sls-workflow-dashboard h3,
.sls-workflow-dashboard h4 {
    font-family: var(--sls-font-heading);
    font-weight: var(--sls-font-weight-semibold);
    line-height: var(--sls-line-height-heading);
    color: var(--sls-text-light);
    margin: 0 0 1rem 0;
}

h1, .woocommerce-account h1, .sls-workflow-dashboard h1 {
    font-size: var(--sls-font-size-h1);
    font-weight: var(--sls-font-weight-bold);
}

h2, .woocommerce-account h2, .sls-workflow-dashboard h2 {
    font-size: var(--sls-font-size-h2);
}

h3, .woocommerce-account h3, .sls-workflow-dashboard h3 {
    font-size: var(--sls-font-size-h3);
}

h4, .woocommerce-account h4, .sls-workflow-dashboard h4 {
    font-size: var(--sls-font-size-h4);
}

/* Page Title Styles - Issue #31 FIX */
.sls-page-title-wrapper {
    margin-bottom: 20px;
    margin-top: 10px; /* Issue #31: Add top spacing */
}

.sls-page-title {
    color: var(--sls-text-light);
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}

/* Body Text - System Sans-Serif */
body,
p,
.woocommerce-account,
.sls-workflow-dashboard {
    font-family: var(--sls-font-body);
    font-size: var(--sls-font-size-body);
    line-height: var(--sls-line-height-body);
    font-weight: var(--sls-font-weight-normal);
}

/* Small Text */
small,
.sls-font-small {
    font-size: var(--sls-font-size-small);
}

/* Strong/Bold Text */
strong, b {
    font-weight: var(--sls-font-weight-semibold);
}

/* Links on Dark Background */
a {
    color: var(--sls-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sls-soft-blue);
    text-decoration: underline;
}

/* Paragraphs */
p {
    margin: 0 0 1rem 0;
    color: var(--sls-text-light);
}

/* Mobile Typography Adjustments - Sprint 1.7 Task 1.7.18 */
@media (max-width: 768px) {
    :root {
        --sls-font-size-h1: 32px;
        --sls-font-size-h2: 24px;
        --sls-font-size-h3: 20px;
        --sls-font-size-h4: 16px;
        --sls-font-size-body: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --sls-font-size-h1: 28px;
        --sls-font-size-h2: 22px;
        --sls-font-size-h3: 18px;
        --sls-font-size-h4: 16px;
        --sls-font-size-body: 14px;
    }
}

/* Base Layout */
#sls-project-overview {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--sls-font-body);
    background-color: var(--sls-black);
    color: var(--sls-text-light);
}

/* Project Cards */
.sls-project-card {
    background: var(--sls-dark-gray);
    border: 1px solid var(--sls-border);
    border-radius: var(--sls-border-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.sls-project-card:hover {
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.2);
    border-color: var(--sls-blue);
}

.sls-project-card h3 {
    margin: 0 0 16px 0;
    color: var(--sls-text-light);
    font-size: 20px;
    font-weight: 600;
}

/* Project Status */
.sls-project-status {
    margin-bottom: 20px;
}

.status-label {
    display: inline-block;
    background: rgba(139, 162, 201, 0.2);
    color: var(--sls-blue);
    padding: 6px 12px;
    border-radius: var(--sls-border-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    border: 1px solid var(--sls-border);
}

/* Progress Bar - Sprint 1.7: Updated to brand colors */
.progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--sls-gray);
    border-radius: var(--sls-border-radius-xs);
    overflow: hidden;
    margin: 8px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--sls-gradient-accent);
    border-radius: var(--sls-border-radius-xs);
    transition: width 0.6s ease;
    position: relative;
}

.progress-text {
    font-size: 13px;
    color: var(--sls-text-muted);
    margin-top: 4px;
    display: block;
}

/* Action Sections */
.sls-action-needed {
    background: rgba(255, 179, 77, 0.1);
    border: 1px solid rgba(255, 179, 77, 0.3);
    border-radius: var(--sls-border-radius-sm);
    padding: 16px;
    margin-top: 16px;
}

.sls-action-needed p {
    margin: 0 0 12px 0;
    color: #ffb74d;
    font-weight: 500;
}

.sls-project-info {
    background: var(--sls-gray);
    border-radius: var(--sls-border-radius-sm);
    padding: 16px;
    margin-top: 16px;
    border: 1px solid var(--sls-border-light);
}

.sls-project-info p {
    margin: 0 0 8px 0;
    color: var(--sls-text-light);
}

.sls-project-info small {
    color: var(--sls-text-muted);
}

/* Buttons - Sprint 1.7: Brand colors */
.sls-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--sls-border-radius);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.sls-btn-primary {
    background: var(--sls-gradient-primary);
    color: white;
}

.sls-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.3);
    filter: brightness(1.1);
}

.sls-btn-secondary {
    background: var(--sls-gray);
    color: white;
    border: 1px solid var(--sls-border);
}

.sls-btn-secondary:hover {
    background: var(--sls-dark-gray);
    border-color: var(--sls-blue);
}

.sls-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* No Projects State - Sprint 1.7: Dark theme */
.sls-no-projects {
    text-align: center;
    padding: 40px 20px;
    background: var(--sls-gray);
    border-radius: var(--sls-border-radius);
    color: var(--sls-text-muted);
    border: 1px solid var(--sls-border);
}

.sls-no-projects p {
    margin: 0 0 12px 0;
    font-size: 16px;
}

/* Project Details - Sprint 1.7: Dark theme */
.sls-project-details {
    background: var(--sls-dark-gray);
    border: 1px solid var(--sls-border);
    border-radius: var(--sls-border-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--sls-border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: 600;
    color: var(--sls-text-light);
    margin: 0;
}

.detail-row span {
    color: var(--sls-text-muted);
    text-align: right;
}

/* Workflow Stages - Sprint 1.7: Dark theme */
.sls-workflow-stages {
    background: var(--sls-dark-gray);
    border: 1px solid var(--sls-border);
    border-radius: var(--sls-border-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.sls-workflow-stages h3 {
    margin: 0 0 20px 0;
    color: var(--sls-text-light);
    font-size: 18px;
}

.stage {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--sls-border-light);
    position: relative;
    color: var(--sls-text-muted);
}

.stage:last-child {
    border-bottom: none;
}

.stage::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sls-gray);
    margin-right: 12px;
    flex-shrink: 0;
}

.stage.completed::before {
    background: var(--sls-blue);
}

.stage.current::before {
    background: var(--sls-gradient-primary);
}

.stage.completed {
    color: var(--sls-blue);
}

.stage.current {
    color: var(--sls-blue);
    font-weight: 600;
}
