/* Custom styles for Dream Home Visualizer */
* {
    font-family: 'Inter', sans-serif;
}

/* Step containers - only show active step */
.step-container {
    transition: opacity 0.3s ease-in-out;
}

.step-container.hidden {
    display: none;
}

/* Radio button styling for house types */
.house-type-option input:checked + div,
.radio-option:has(input:checked),
.number-option:has(input:checked) {
    border-color: #10b981 !important;
    background-color: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.house-type-option input:checked + div h3 {
    color: #059669;
}

.radio-option:has(input:checked) {
    border-color: #f97316 !important;
    background-color: #fff7ed;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.number-option:has(input:checked) {
    border-color: #8b5cf6 !important;
    background-color: #f5f3ff;
    color: #7c3aed;
    font-weight: 600;
}

/* Image upload area */
#upload-area.dragover {
    border-color: #f97316;
    background-color: #fff7ed;
}

/* Progress animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-container {
    animation: slideIn 0.5s ease-out;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .house-type-option .h-32 {
        height: 5rem;
    }
    
    .house-type-option i {
        font-size: 1.5rem;
    }
    
    .house-type-option h3 {
        font-size: 0.875rem;
    }
    
    .house-type-option p {
        font-size: 0.75rem;
    }
    
    /* Stack navigation buttons on mobile */
    .flex.justify-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .flex.justify-between button {
        width: 100%;
    }
    
    /* Mobile-first upload area */
    #upload-area {
        padding: 2rem 1rem;
    }
    
    /* Responsive grid for number options */
    .flex.space-x-2 {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Better mobile header */
    header h1 {
        font-size: 1.125rem;
    }
    
    header p {
        display: none;
    }
}

@media (max-width: 480px) {
    .grid.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
    
    .text-xl {
        font-size: 1.25rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
    
    .p-6 {
        padding: 1rem;
    }
}

/* Smooth transitions */
button, .radio-option, .number-option, .house-type-option div {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced focus states for accessibility */
input:focus, textarea:focus, button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Results screen styling */
#generated-house-image {
    max-height: 500px;
    object-fit: cover;
}

/* Kenyan-themed color enhancements */
.bg-kenya-green {
    background-color: #006633;
}

.text-kenya-green {
    color: #006633;
}

.border-kenya-green {
    border-color: #006633;
}

/* Special Kenyan flag colors integration */
.bg-kenya-red {
    background-color: #ce1126;
}

.bg-kenya-black {
    background-color: #000000;
}

/* Cultural pattern overlay (optional decorative element) */
.cultural-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-16.569 13.431-30 30-30v30H30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Enhanced button hover effects */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

/* Error state styling */
.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success state styling */
.success {
    border-color: #22c55e !important;
    background-color: #f0fdf4;
}