/* GiveBAC Custom Styles */

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Line clamp utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* Hero gradient animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-animated {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

/* Professional button hover effects */
.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Card hover effects */
.card-hover:hover {
    transform: scale(1.02);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .text-responsive-xl {
        font-size: 2rem;
    }
}

/* Professional color palette - override Tailwind where needed */
.text-primary {
    color: #2563eb;
}

.bg-primary {
    background-color: #2563eb;
}

.border-primary {
    border-color: #2563eb;
}

/* Impact metrics styling */
.impact-card {
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* Charity card animations */
.charity-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.charity-card:hover {
    transform: translateY(-4px);
}

/* Form input focus */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Success/Error message animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-box {
    animation: slideDown 0.3s ease-out;
}

/* Professional shadows */
.shadow-professional {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-professional-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hero section enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* Navigation active state */
nav a.active {
    color: #2563eb;
    font-weight: 600;
}

/* Footer link hover */
footer a:hover {
    color: #3b82f6;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Professional typography */
.heading-xl {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 700;
}

.heading-lg {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.3;
    font-weight: 600;
}

/* Trust indicators */
.trust-badge {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

/* CTA button styles */
.cta-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.cta-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

/* Responsive container */
.container-professional {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-professional {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-professional {
        padding: 0 2rem;
    }
}
