/* Step 4: Artwork Location Selection Styles */

.artwork-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.artwork-location-grid.secondary {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.artwork-location-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.artwork-location-card:hover {
    border-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.artwork-location-card.active {
    border-color: #2c5282;
    background: #f7fafc;
    box-shadow: 0 4px 16px rgba(44, 82, 130, 0.2);
}

.location-image-container {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.location-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placement-indicator {
    background: #2c5282;
    border-radius: 4px;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.top-indicator {
    width: 80px;
    height: 20px;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.side-indicator {
    width: 20px;
    height: 80px;
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
}

.border-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid #2c5282;
    background: transparent;
    border-radius: 4px;
}

.bronze-top-indicator {
    width: 60px;
    height: 15px;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    background: #cd7f32;
}

.bronze-side-indicator {
    width: 15px;
    height: 60px;
    position: absolute;
    left: 25%;
    top: 50%;
    transform: translateY(-50%);
    background: #cd7f32;
}

.bronze-frame-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 4px solid #cd7f32;
    background: transparent;
    border-radius: 6px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.location-info {
    padding: 1.5rem;
    text-align: center;
}

.location-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
}

.location-info p {
    margin: 0 0 0.5rem 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.4;
}

.location-info small {
    color: #718096;
    font-size: 0.85rem;
    font-style: italic;
}

.artwork-location-card.active .location-info h4 {
    color: #2c5282;
}

.artwork-location-card.active .location-info p {
    color: #2c5282;
}

/* Selected location display in Step 5 */
.selected-location-display {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.selected-location-display .location-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.selected-location-display .location-info p {
    margin: 0 0 1rem 0;
    color: #4a5568;
}

.back-to-location-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.back-to-location-btn:hover {
    background: #3182ce;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .artwork-location-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .artwork-location-grid.secondary {
        grid-template-columns: 1fr;
    }
    
    .location-image-container {
        height: 150px;
    }
    
    .location-info {
        padding: 1rem;
    }
    
    .location-info h4 {
        font-size: 1.1rem;
    }
}
