/* Main Page Styles */

/* Container query support */
@container (min-width: 768px) {
    .@md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@container (min-width: 475px) {
    .@xs\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@container (min-width: 1024px) {
    .@lg\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Button hover effects */
.suggestion-btn:hover {
    transform: translateY(-1px);
}

/* Focus styles */
.chat-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .grid-cols-5 {
        grid-template-columns: 1fr;
    }
    
    .col-span-2,
    .col-span-3 {
        grid-column: span 1 / span 1;
    }
}

/* Mobile card height fixes */
@media (max-width: 768px) {
    /* Make cards have minimum height on mobile */
    button.large {
        min-height: 280px;
    }
    
    button.small {
        min-height: 140px;
    }
    
    button.medium {
        min-height: 140px;
    }
    
    /* Smaller text on mobile */
    button.large h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    button.small h3,
    button.medium h3 {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
