/**
 * Seasonal Collection Switcher - Use Case Specific Styles
 * Summer/Winter collection switching with bulk rendering
 */

/* ===== Seasonal Layout ===== */
.seasonal-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ===== Seasonal Controls ===== */
.seasonal-controls {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

/* ===== Season Toggle ===== */
.season-toggle {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.season-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

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

.season-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    box-shadow: var(--shadow);
}

.season-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.season-btn.active svg {
    color: white;
}

/* Summer active state */
.season-btn[data-season="summer"].active {
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
}

/* Winter active state */
.season-btn[data-season="winter"].active {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
}

/* ===== Artwork Input Section ===== */
.artwork-input-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.section-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ===== URL Input ===== */
.url-input-group {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.url-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.url-input::placeholder {
    color: var(--text-muted);
}

/* ===== Artwork Preview ===== */
.artwork-preview {
    margin-top: 8px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    max-width: 200px;
    box-shadow: var(--shadow-sm);
}

.artwork-preview img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    padding: 8px;
}

/* ===== Seasonal Grid ===== */
.seasonal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.seasonal-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seasonal-item .mockup-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

.seasonal-preview {
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.seasonal-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seasonal-item:hover .seasonal-preview {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ===== Seasonal Badge ===== */
.seasonal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.seasonal-badge.summer {
    background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.seasonal-badge.winter {
    background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* ===== Loading & Error States ===== */
.loading-state,
.error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading-state svg,
.error-state svg {
    width: 32px;
    height: 32px;
}

.error-state svg {
    color: var(--error);
}

/* ===== Mockup Loading Overlay ===== */
.mockup-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius-lg);
}

.mockup-loading svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

/* Spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .seasonal-controls {
        grid-template-columns: 1fr;
    }

    .season-toggle {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .season-toggle {
        flex-direction: column;
        align-items: stretch;
    }

    .season-btn {
        justify-content: center;
    }

    .seasonal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .seasonal-grid {
        grid-template-columns: 1fr;
    }
}
