@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .glass {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
    margin-right: 4px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fbfbe2;
    color: #1b1d0e;
}

h1, h2, h3, .font-headline {
    font-family: 'Manrope', sans-serif;
}

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

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #001e40 0%, #1b6d24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shine effect on hover */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* Card hover lift */
.card-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 30, 64, 0.15);
}

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

.gradient-border {
    background: linear-gradient(90deg, #001e40, #1b6d24, #001e40);
    background-size: 200% 200%;
    animation: gradient-border 3s ease infinite;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.count-up {
    animation: countUp 0.6s ease-out forwards;
}

/* Custom styles for Events & Gallery */
.masonry-grid { columns:1; column-gap:1.5rem; }
@media(min-width:768px){ .masonry-grid { columns:2; } }
@media(min-width:1024px){ .masonry-grid { columns:3; } }
.masonry-item { break-inside:avoid; margin-bottom:1.5rem; }
.drop-zone.drag-over { border-color:#1b6d24; background:#a0f39920; }

/* Custom styles for Donate */
.tier-card.selected { border-color:#1b6d24; background:#a0f39915; }
.amount-btn.selected { border-color:#1b6d24; background:#a0f39920; }
