/*
 * SLS Workflow Genre Selection Phase
 * Multi-select genre cards with touch-optimized interactions
 * Sprint 7.3: Extracted from monolithic sls-workflow-public.css
 */

/* ===========================================
   GENRE SELECTION - BASE STRUCTURE
   Sprint 1.5: Grid layout with multi-select
   =========================================== */

.sls-genre-selection-phase .sls-genre-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.sls-genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.sls-genre-option {
    cursor: pointer;
    display: block;
    position: relative;
}

.sls-genre-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ===========================================
   GENRE CARDS
   =========================================== */

.sls-genre-card {
    background: var(--sls-dark-gray);
    border: 2px solid var(--sls-border);
    border-radius: var(--sls-border-radius);
    padding: 24px;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.sls-genre-option.selected .sls-genre-card {
    border-color: var(--sls-blue);
    background: var(--sls-gradient-primary);
    box-shadow: 0 4px 12px rgba(139, 162, 201, 0.4);
}

.sls-genre-option input[type="checkbox"]:disabled:not(:checked) + .sls-genre-card {
    opacity: 0.5;
    cursor: not-allowed;
}

.sls-genre-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--sls-text-light);
}

.sls-genre-option.selected .sls-genre-card h3 {
    color: white;
}

.sls-genre-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sls-text-muted);
}

.sls-genre-option.selected .sls-genre-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===========================================
   GENRE ACTIONS & SELECTION COUNT
   =========================================== */

.sls-genre-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--sls-border);
}

.sls-selection-count {
    font-size: 14px;
    color: var(--sls-text-muted);
    margin-bottom: 20px;
}

.sls-selection-count span {
    font-weight: 600;
    color: var(--sls-blue);
}

/* ===========================================
   RESPONSIVE - TABLET
   Sprint 1.6 Task 1.6.28
   =========================================== */

@media (max-width: 1024px) and (min-width: 641px) {
    .sls-genre-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sls-genre-card {
        min-height: 130px;
        padding: 22px;
    }
}

/* ===========================================
   RESPONSIVE - MOBILE
   Sprint 1.6 Task 1.6.28: Enhanced for touch
   =========================================== */

@media (max-width: 640px) {
    .sls-genre-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sls-genre-card {
        min-height: 120px;
        padding: 20px;
        -webkit-tap-highlight-color: rgba(33, 150, 243, 0.1);
    }

    /* Active state for touch feedback */
    .sls-genre-option:active .sls-genre-card {
        transform: scale(0.98);
        background: #f5f5f5;
    }

    .sls-genre-option.selected:active .sls-genre-card {
        transform: scale(0.98);
    }

    .sls-genre-card h3 {
        font-size: 16px;
    }

    .sls-genre-card p {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Larger touch targets for action buttons */
    .sls-genre-actions button {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* ===========================================
   RESPONSIVE - VERY SMALL MOBILE
   Sprint 1.6 Task 1.6.28
   =========================================== */

@media (max-width: 375px) {
    .sls-genre-card {
        padding: 18px;
        min-height: 110px;
    }

    .sls-genre-card h3 {
        font-size: 15px;
    }

    .sls-genre-card p {
        font-size: 12px;
    }

    .sls-genre-examples {
        font-size: 11px !important;
    }
}
