/* Step 5: Frosted Artwork Selection Styles */

/* Main Container */
#step5 {
    max-width: 100%;
    width: 100%;
}

/* Explanation Section */
.frosted-explanation {
    background: #e8f4fd;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0 2rem 0;
}

.frosted-explanation h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.frosted-explanation ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.frosted-explanation li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.frosted-explanation p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

.frosted-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

/* No Artwork State */
.no-artwork-state {
    text-align: center;
    padding: 3rem 1rem;
}

.info-message {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.info-message h3 {
    color: #495057;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
}

.info-message p {
    color: #6c757d;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.back-to-artwork-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-artwork-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Selected Artwork Display */
.selected-artwork-display {
    margin-bottom: 2rem;
}

.selected-artwork-display h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.artwork-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.artwork-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.artwork-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
}

.artwork-details h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.artwork-details p {
    margin: 0 0 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.artwork-location {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.frosting-compatible {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.frosting-compatible.yes {
    background: #d4edda;
    color: #155724;
}

.frosting-compatible.no {
    background: #f8d7da;
    color: #721c24;
}

/* Frosted Selection */
.frosted-selection {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.frosted-option {
    margin-bottom: 1.5rem;
}

.frosted-checkbox {
    display: none;
}

.frosted-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    user-select: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.frosted-checkbox:checked + .frosted-label .checkbox-custom {
    background: #27ae60;
    border-color: #27ae60;
}

.frosted-checkbox:checked + .frosted-label .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.frosted-label:hover .checkbox-custom {
    border-color: #27ae60;
}

.label-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.label-text strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.label-text small {
    color: #666;
    font-size: 0.9rem;
    font-weight: normal;
}

/* Frosted Info */
.frosted-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    display: block;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Frosted Unavailable */
.frosted-unavailable {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.warning-message h4 {
    color: #856404;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.warning-message p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

/* Price Display */
.price-display {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
    margin: 0;
}

.price-description {
    color: #666;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}

/* Animation for checkbox */
@keyframes checkmark {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
}

.frosted-checkbox:checked + .frosted-label .checkbox-custom::after {
    animation: checkmark 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .frosted-container {
        padding: 0.5rem;
    }
    
    .artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .frosted-selection {
        padding: 1.5rem;
    }
    
    .info-message {
        padding: 1.5rem;
    }
    
    .frosted-label {
        font-size: 0.9rem;
    }
    
    .label-text strong {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .artwork-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .artwork-image {
        height: 100px;
    }
    
    .frosted-selection {
        padding: 1rem;
    }
    
    .info-message {
        padding: 1rem;
    }
}

/* Loading state for artwork */
.artwork-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.frosted-checkbox:focus + .frosted-label .checkbox-custom {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.back-to-artwork-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
