/*
 * SLS Workflow Completion Phase Styles
 * Deliverables display, My Songs dashboard, awaiting publication success screen
 * Sprint 7.3: Extracted from monolithic sls-workflow-public.css
 */

/* ===========================================
   COMPLETION PHASE & DELIVERABLES
   Sprint 1.6 - Task 1.6.27
   =========================================== */

/* Completion Phase Container - Sprint 1.7: Dark theme */
.sls-completion-phase {
    /* Removed background/padding/border to eliminate nested card effect */
}

.sls-completion-content {
    margin-top: 0;
}

/* Deliverables List */
.sls-deliverables-list h3 {
    font-size: 26px;
    color: var(--sls-text-light);
    margin: 0 0 25px 0;
    text-align: center;
}

.sls-deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Deliverable Cards */
.sls-deliverable-card {
    background: var(--sls-dark-gray);
    border: 2px solid var(--sls-border);
    border-radius: var(--sls-border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sls-deliverable-card:hover {
    border-color: var(--sls-blue);
    box-shadow: 0 4px 16px rgba(139, 162, 201, 0.3);
    transform: translateY(-2px);
}

/* Deliverable Header */
.sls-deliverable-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sls-deliverable-card.sls-deliverable-lyrics .sls-deliverable-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sls-deliverable-card.sls-deliverable-production .sls-deliverable-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.sls-deliverable-card.sls-deliverable-artwork .sls-deliverable-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.sls-deliverable-card.sls-deliverable-video .sls-deliverable-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.sls-deliverable-icon {
    font-size: 32px;
    line-height: 1;
}

.sls-deliverable-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

/* Deliverable Body */
.sls-deliverable-body {
    padding: 20px;
}

.sls-deliverable-hint {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    font-style: italic;
}

.sls-deliverable-meta {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

/* Expandable Content */
.sls-deliverable-expand {
    margin: 15px 0;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
}

.sls-deliverable-expand summary {
    cursor: pointer;
    font-weight: 600;
    color: #007cba;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sls-deliverable-expand summary::-webkit-details-marker {
    display: none;
}

.sls-deliverable-expand summary::before {
    content: '▶';
    display: inline-block;
    transition: transform 0.3s;
}

.sls-deliverable-expand[open] summary::before {
    transform: rotate(90deg);
}

.sls-deliverable-expand summary:hover {
    color: #005a87;
}

.sls-lyrics-content,
.sls-production-content {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Artwork Preview */
.sls-artwork-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Video/Audio Player */
.sls-deliverable-player {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #000;
}

/* Download Button */
.sls-deliverable-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.sls-deliverable-button:hover {
    background: #005a87;
    color: white;
}

.sls-deliverable-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* No Deliverables State */
.sls-no-deliverables {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #666;
}

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

/* Next Steps Section - Sprint 1.7: Dark theme */
.sls-next-steps {
    background: rgba(139, 162, 201, 0.1);
    border-left: 4px solid var(--sls-blue);
    padding: 25px;
    border-radius: var(--sls-border-radius-sm);
    margin-top: 30px;
    border: 1px solid var(--sls-border);
}

.sls-next-steps h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: var(--sls-blue);
}

.sls-next-steps p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sls-text-light);
}

/* ===========================================
   MY SONGS PAGE LAYOUT
   Sprint 1.7 - Task 1.7.9
   =========================================== */

/* Main Dashboard Container */
.sls-workflow-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: var(--sls-black);
}

/* Section Containers - Clear Visual Separation */
.sls-dashboard-section {
    margin-bottom: 30px;
}

/* Welcome Section */
.sls-welcome-section {
    background: var(--sls-gradient-primary);
    color: var(--sls-text-light);
    padding: 40px;
    border-radius: var(--sls-border-radius);
    margin-bottom: 30px;
    border: 1px solid var(--sls-border);
}

.sls-welcome-section h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 600;
    color: var(--sls-text-light);
}

.sls-welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    font-size: 16px;
}

.sls-welcome-grid div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sls-welcome-grid strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.sls-status-badge {
    color: var(--sls-blue) !important;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--sls-border-radius);
    display: inline-block;
    font-weight: 500;
}

/* Workflow Interface Container */
.sls-workflow-interface-container {
    background: var(--sls-dark-gray);
    border: 1px solid var(--sls-border);
    border-radius: var(--sls-border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

/* Quick Actions Section - Dark Theme */
.sls-quick-actions-section {
    background: var(--sls-dark-gray);
    border: 1px solid var(--sls-border);
    border-radius: var(--sls-border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.sls-quick-actions-section h3 {
    margin: 0 0 20px 0;
    color: var(--sls-text-light);
    font-size: 20px;
    font-weight: 600;
}

.sls-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.sls-quick-action-btn {
    background: var(--sls-gradient-accent);
    color: var(--sls-text-light);
    padding: 15px 20px;
    border-radius: var(--sls-border-radius-sm);
    text-decoration: none;
    text-align: center;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--sls-border);
}

.sls-quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.3);
    color: var(--sls-text-light);
    text-decoration: none;
}

.sls-quick-action-btn.secondary {
    background: var(--sls-gray);
}

.sls-quick-action-btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* No Project State */
.sls-no-project-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: var(--sls-border-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.sls-no-project-section h3 {
    color: #856404;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.sls-no-project-section p {
    color: #856404;
    font-size: 16px;
    margin: 10px 0;
}

.sls-no-project-cta {
    background: var(--sls-blue);
    color: white;
    padding: 15px 30px;
    border-radius: var(--sls-border-radius-sm);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sls-no-project-cta:hover {
    background: var(--sls-soft-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.3);
    color: white;
    text-decoration: none;
}

/* ===========================================
   AWAITING PUBLICATION SUCCESS SCREEN
   Sprint 7.2
   =========================================== */

.sls-awaiting-publication-phase {
    max-width: 1200px;
    margin: 0 auto;
}

.sls-success-container {
    margin-top: 30px;
}

/* Video Comparison Section */
.sls-video-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sls-video-preview {
    background: var(--sls-light-gray, #252020);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--sls-border, #363636);
}

.sls-video-preview h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--sls-primary, #007cba);
    font-size: 18px;
}

.sls-video-preview video {
    width: 100%;
    background: #000;
    border-radius: 6px;
    margin-bottom: 10px;
}

.sls-video-meta {
    font-size: 13px;
    color: var(--sls-text-muted, #999);
    margin: 0;
}

/* Distribution Message Section */
.sls-distribution-message {
    background: var(--sls-light-gray, #252020);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--sls-border, #363636);
    margin-bottom: 30px;
}

.sls-distribution-message h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--sls-primary, #007cba);
    font-size: 20px;
}

.sls-next-steps-content p {
    margin-bottom: 15px;
    font-size: 15px;
}

.sls-next-steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sls-next-steps-list > li {
    padding: 12px 0;
    border-bottom: 1px solid var(--sls-border, #363636);
    line-height: 1.6;
}

.sls-next-steps-list > li:last-child {
    border-bottom: none;
}

.sls-step-icon {
    display: inline-block;
    width: 24px;
    margin-right: 8px;
    font-weight: bold;
    color: var(--sls-primary, #007cba);
}

/* ===========================================
   MOBILE RESPONSIVE - COMPLETION
   =========================================== */

@media (max-width: 768px) {
    /* Completion Phase */
    .sls-completion-phase {
        padding: 20px 15px;
    }

    .sls-deliverables-list h3 {
        font-size: 22px;
    }

    .sls-deliverables-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sls-deliverable-header {
        padding: 15px;
    }

    .sls-deliverable-icon {
        font-size: 28px;
    }

    .sls-deliverable-header h4 {
        font-size: 16px;
    }

    .sls-deliverable-body {
        padding: 15px;
    }

    .sls-lyrics-content,
    .sls-production-content {
        max-height: 300px;
        font-size: 12px;
    }

    .sls-next-steps {
        padding: 20px;
    }

    .sls-next-steps h3 {
        font-size: 18px;
    }

    .sls-next-steps p {
        font-size: 14px;
    }

    /* My Songs Dashboard */
    .sls-workflow-dashboard {
        margin: 20px auto;
        padding: 0 15px;
    }

    .sls-welcome-section {
        padding: 25px 20px;
    }

    .sls-welcome-section h2 {
        font-size: 24px;
    }

    .sls-welcome-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        font-size: 14px;
    }

    .sls-workflow-interface-container,
    .sls-quick-actions-section {
        padding: 20px 15px;
    }

    .sls-quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .sls-quick-actions-section h3 {
        font-size: 18px;
    }

    .sls-no-project-section {
        padding: 25px 20px;
    }

    .sls-no-project-section h3 {
        font-size: 20px;
    }

    /* Awaiting Publication */
    .sls-video-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sls-distribution-message {
        padding: 20px;
    }

    .sls-video-preview {
        padding: 15px;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .sls-workflow-dashboard {
        max-width: 900px;
        padding: 0 20px;
    }

    .sls-welcome-section,
    .sls-workflow-interface-container,
    .sls-quick-actions-section {
        padding: 30px 25px;
    }
}

/* Sprint 6.5: Mobile Container Width & Layout Fixes */
@media (max-width: 768px) {
    /* Make inner containers span nearly full width */
    .sls-completion-phase,
    .sls-workflow-interface {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Keep internal padding but reduce for mobile */
    .sls-completion-phase {
        padding: 15px !important;
    }

    .sls-workflow-interface {
        padding: 15px !important;
    }

    /* Sprint 6.5: Reduce top margin to align page title with hamburger menu */
    .sls-workflow-dashboard {
        margin-top: 0 !important;
        padding-top: 0px !important;
    }
}

/* ============================================
   SPRINT 7: ARTWORK SELECTION PHASE STYLES
   ============================================ */

.sls-artwork-selection-phase {
    max-width: 1200px;
    margin: 0 auto;
}

.sls-artwork-container {
    margin-top: 30px;
}

.sls-artwork-status-message {
    text-align: center;
    padding: 25px;
    background: var(--sls-dark-gray, #1A1515);
    border-radius: 12px;
    border: 1px solid var(--sls-border, #363636);
    margin-bottom: 40px;
}

.sls-artwork-status-message .sls-status-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.sls-artwork-status-message p {
    margin: 10px 0;
    color: var(--sls-text-muted, #999);
}

.sls-artwork-status-message strong {
    color: var(--sls-text-primary, #EFEFEF);
    font-size: 18px;
}

/* Artwork Grid - Side by Side on Desktop, Stacked on Mobile */
.sls-artwork-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns on desktop */
    gap: 30px;
    margin: 30px 0;
}

.sls-artwork-option {
    cursor: pointer;
    display: block;
}

.sls-artwork-option input[type="radio"] {
    display: none;
}

.sls-artwork-card {
    background: var(--sls-dark-gray, #1A1515);
    border: 2px solid var(--sls-border, #363636);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.sls-artwork-card:hover {
    border-color: var(--sls-blue, #6EC1E4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(110, 193, 228, 0.15);
}

.sls-artwork-option input[type="radio"]:checked + .sls-artwork-card {
    border-color: var(--sls-blue, #6EC1E4);
    box-shadow: 0 0 0 3px rgba(110, 193, 228, 0.2);
}

.sls-artwork-image-container {
    position: relative;
    aspect-ratio: 1 / 1; /* Square container */
    overflow: hidden;
    background: #000;
}

.sls-artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sls-artwork-selected-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--sls-blue, #6EC1E4);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.sls-artwork-option input[type="radio"]:checked ~ .sls-artwork-card .sls-artwork-selected-badge {
    opacity: 1;
    transform: scale(1);
}

.sls-artwork-details {
    padding: 20px;
}

.sls-artwork-details h3 {
    color: var(--sls-text-primary, #EFEFEF);
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.sls-artwork-details p {
    color: var(--sls-text-muted, #999);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.sls-artwork-actions {
    margin-top: 40px;
    text-align: center;
}

.sls-btn-select-artwork {
    font-size: 16px;
    padding: 14px 32px;
    min-width: 200px;
}

.sls-btn-select-artwork:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sls-artwork-helper-text {
    margin-top: 15px;
    color: var(--sls-text-muted, #999);
    font-size: 13px;
}

/* Mobile Responsive - Stack on Small Screens */
@media (max-width: 768px) {
    .sls-artwork-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .sls-artwork-status-message {
        padding: 20px 15px;
    }

    .sls-artwork-status-message .sls-status-icon {
        font-size: 36px;
    }

    .sls-artwork-details h3 {
        font-size: 16px;
    }

    .sls-artwork-details p {
        font-size: 13px;
    }

    .sls-btn-select-artwork {
        width: 100%;
    }
}

/* ========================================
   AWAITING PUBLICATION - VIDEO THUMBNAILS
   Side-by-side thumbnail boxes, click to play in modal
   ======================================== */

.sls-videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns on desktop */
    gap: 30px;
    margin: 30px 0;
}

.sls-video-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Thumbnail Box - Landscape 16:9 ratio */
.sls-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Landscape aspect ratio */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--sls-border, #363636);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sls-video-thumbnail:hover {
    border-color: var(--sls-blue, #6EC1E4);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(110, 193, 228, 0.2);
}

/* Thumbnail Overlay Content */
.sls-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.sls-video-thumbnail:hover .sls-thumbnail-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Play Icon */
.sls-play-icon {
    font-size: 64px;
    color: var(--sls-blue, #6EC1E4);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.sls-video-thumbnail:hover .sls-play-icon {
    font-size: 72px;
    color: var(--sls-white, #EFEFEF);
}

/* Thumbnail Label */
.sls-thumbnail-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--sls-white, #EFEFEF);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* Share Button */
.sls-share-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sls-share-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Sharing Note */
.sls-sharing-note {
    text-align: center;
    color: var(--sls-text-muted, #999);
    font-size: 14px;
    margin-top: 20px;
}

.sls-sharing-note p {
    margin: 0;
}

/* Video Player Modal */
.sls-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sls-video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.sls-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 1000000;
    line-height: 1;
    transition: color 0.3s ease;
}

.sls-video-modal-close:hover {
    color: var(--sls-blue, #6EC1E4);
}

#sls-modal-video-player {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

/* Mobile Responsive - Stack on Small Screens */
@media (max-width: 768px) {
    .sls-videos-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .sls-video-thumbnail {
        max-width: 500px; /* Limit width on mobile */
        margin: 0 auto;
    }

    .sls-play-icon {
        font-size: 48px;
    }

    .sls-video-thumbnail:hover .sls-play-icon {
        font-size: 52px;
    }

    .sls-thumbnail-label {
        font-size: 16px;
        bottom: 15px;
    }
}

/* ===========================================
   COMPLETION INTERFACE LAYOUT (Sprint 4.8)
   Restored from pre-refactoring code
   =========================================== */

/* Hero Title */
.sls-completion-hero {
    text-align: center;
    margin: 30px 0 40px 0;
}

.sls-completion-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--sls-blue, #8BA2C9);
    margin: 0;
}

/* Top Section: Artwork + Streaming Links */
.sls-completion-top-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch; /* Make children equal height */
}

/* Left: Hero Artwork (40%) */
.sls-artwork-hero {
    flex: 0 0 40%;
    max-width: 40%;
}

.sls-artwork-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.sls-hero-artwork-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.sls-artwork-download-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sls-border, #363636);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none; /* Remove underline from link */
}

.sls-artwork-download-btn:hover {
    background: var(--sls-blue, #8BA2C9);
    border-color: var(--sls-blue, #8BA2C9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.4);
}

.sls-artwork-download-btn svg {
    fill: white;
    display: block; /* Remove inline spacing */
    margin: auto; /* Center the SVG */
}

.sls-artwork-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--sls-dark-gray, #1A1515);
    border: 1px solid var(--sls-border, #363636);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sls-placeholder-icon {
    font-size: 64px;
    opacity: 0.5;
}

.sls-artwork-placeholder p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--sls-text-muted, #999);
    margin: 0;
}

/* Right: Streaming Links (60%) */
.sls-streaming-links {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically to match artwork */
    gap: 12px; /* Small gap between boxes */
    padding-right: 30px; /* Match artwork left padding */
}

/* Compact Box Styles */
.sls-compact-box {
    background: var(--sls-dark-gray, #1A1515);
    border: 1px solid var(--sls-border, #363636);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    min-height: 100px; /* Restored original height */
}

.sls-compact-box:hover {
    background: #221D1D;
    border-color: var(--sls-blue, #8BA2C9);
    box-shadow: 0 4px 16px rgba(139, 162, 201, 0.15);
}

/* Compact Box Header (Left Side) */
.sls-compact-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Platform Badges */
.sls-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
}

.sls-platform-badge svg {
    flex-shrink: 0;
}

.sls-spotify-badge {
    background: #1DB954;
    color: white;
}

.sls-apple-badge {
    background: #FA243C;
    color: white;
}

.sls-amazon-badge {
    background: #00A8E1;
    color: white;
}

/* Video Box Titles */
.sls-compact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--sls-text-light, #E0E0E0);
    margin: 0;
}

.sls-compact-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--sls-text-muted, #999);
    margin: 0;
}

/* Compact Box Actions (Right Side) */
.sls-compact-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Compact Buttons */
.sls-compact-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sls-btn-view {
    background: var(--sls-blue, #8BA2C9);
    color: white;
    /* Fix play button overflow in rounded container */
    padding: 10px 14px;
    min-width: 44px;
    min-height: 44px;
}

.sls-btn-view:hover {
    background: #7a91b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.3);
}

.sls-btn-view svg {
    width: 18px;
    height: 18px;
}

.sls-btn-copy {
    background: var(--sls-dark-gray, #2A2525);
    color: var(--sls-text-light, #E0E0E0);
    border: 1px solid var(--sls-border, #363636);
}

.sls-btn-copy:hover {
    background: var(--sls-border, #363636);
    border-color: var(--sls-blue, #8BA2C9);
}

/* Sprint 6.5: Share Icon Button - Compact icon-only style */
.sls-share-icon-btn {
    background: transparent;
    border: 1px solid var(--sls-border, #363636);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; /* Touch target */
    min-height: 44px;
}

.sls-share-icon-btn:hover {
    background: var(--sls-gradient-primary);
    border-color: var(--sls-blue, #8BA2C9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.3);
}

.sls-share-icon-btn svg {
    fill: var(--sls-text-light, #E0E0E0);
    transition: fill 0.3s ease;
}

.sls-share-icon-btn:hover svg {
    fill: white;
}

/* Fix download icon size - increase from 20x20 to 24x24 */
/* !important needed to override inline width/height attributes in template */
.sls-share-icon-btn svg {
    width: 24px !important;
    height: 24px !important;
}

/* Bottom Section: Video Boxes (50/50) */
.sls-completion-videos-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.sls-completion-videos-section .sls-compact-box {
    flex: 1; /* Equal width (50/50) */
    min-height: 120px;
}

/* CTA Box (Full Width Below Layout) */
.sls-completion-box.sls-cta-box {
    background: linear-gradient(135deg, #6d3f77 0%, #798cb1 100%);
    border: none;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.sls-cta-box .sls-box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sls-cta-icon {
    font-size: 48px;
}

.sls-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.sls-cta-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.sls-box-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sls-box-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.sls-btn-primary-large {
    background: white !important;
    color: #6d3f77 !important;
    padding: 12px 24px;
    font-size: 16px;
}

.sls-btn-primary-large:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Thank You Section */
.sls-thank-you-section {
    background: var(--sls-dark-gray, #1A1515);
    border: 1px solid var(--sls-border, #363636);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.sls-thank-you-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--sls-blue, #8BA2C9);
    margin: 0 0 15px 0;
}

.sls-thank-you-section p {
    font-size: 16px;
    color: var(--sls-text-light, #E0E0E0);
    line-height: 1.6;
    margin: 10px 0;
}

/* Copy URL Feedback */
.sls-btn-copy.copied {
    background: #1DB954 !important;
    color: white !important;
    border-color: #1DB954 !important;
}

/* Sprint 6: Sharing Section */
.sls-sharing-section {
    background: var(--sls-dark-gray, #1A1515);
    border: 1px solid var(--sls-border, #363636);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.sls-sharing-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--sls-blue, #8BA2C9);
    margin: 0 0 10px 0;
}

.sls-sharing-section > p {
    font-size: 14px;
    color: var(--sls-text-muted, #999);
    margin: 0 0 25px 0;
}

.sls-share-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sls-share-option-group h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--sls-text-light, #E0E0E0);
    margin: 0 0 15px 0;
}

.sls-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sls-share-btn, .sls-copy-caption-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--sls-border, #363636);
    background: var(--sls-dark-gray, #2A2525);
    color: var(--sls-text-light, #E0E0E0);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sls-share-btn:hover, .sls-copy-caption-btn:hover {
    background: var(--sls-border, #363636);
    border-color: var(--sls-blue, #8BA2C9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.3);
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .sls-completion-top-section {
        flex-direction: column;
        align-items: stretch; /* Make boxes full width on mobile */
    }

    .sls-artwork-hero,
    .sls-streaming-links {
        flex: 1 1 100%;
        max-width: 100%;
        padding-right: 0; /* Remove right padding on mobile */
    }

    .sls-hero-artwork-img {
        max-width: 500px; /* Slightly larger on tablet */
        margin: 0 auto;
        display: block;
    }

    .sls-artwork-placeholder {
        max-width: 500px;
        margin: 0 auto;
    }

    .sls-streaming-links {
        gap: 20px; /* Add gap when stacked on mobile */
        justify-content: flex-start; /* Override space-between when stacked */
    }

    .sls-completion-videos-section {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .sls-completion-title {
        font-size: 28px;
    }

    .sls-compact-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px; /* Add more space between platform badge and buttons */
        padding: 16px;
    }

    .sls-compact-actions {
        width: 100%;
    }

    .sls-compact-btn {
        flex: 1;
    }

    .sls-thank-you-section {
        padding: 25px;
    }

    .sls-thank-you-section h3 {
        font-size: 22px;
    }

    .sls-hero-artwork-img {
        max-width: 100%;
    }
}
