/* Donation Page Styles */
:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-lighter: #93c5fd;
    --primary-lightest: #dbeafe;
    --warning-color: #f59e0b;
    --success-color: #10b981;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    padding: 6rem 0;
}

.hero-pattern {
    pointer-events: none;
}

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

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

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

.hero-image-wrapper {
    perspective: 1000px;
}

.hero-image-card {
    transform: rotate3d(1, 1, 0, -5deg);
    transition: transform 0.3s ease;
}

.hero-image-card:hover {
    transform: rotate3d(1, 1, 0, 0deg);
}

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Donation Form */
.donation-section {
    background-color: #f8fafc;
}

.donation-form-container {
    position: relative;
    top: -100px;
    margin-bottom: -100px;
    box-shadow: none;
}

.btn-amount {
    position: relative;
    padding: 1rem 0.75rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 90px;
    width: 130px;
    overflow: hidden;
    text-align: center;
}

.btn-amount::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-lighter));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-amount .amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.btn-amount .impact {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.btn-amount:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.btn-amount.active {
    border-color: var(--primary-light);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.btn-amount:hover::before,
.btn-amount.active::before {
    opacity: 1;
}

.custom-amount-input {
    position: relative;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
    text-align: left;
}

.custom-amount-input .input-group {
    max-width: 300px;
    margin: 0.5rem 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.custom-amount-input .form-label {
    color: #6b7280;
    margin-left: 0.5rem;
}

.custom-amount-input .input-group-text {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-right: none;
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
}

.custom-amount-input .form-control {
    border: 2px solid #e5e7eb;
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-color);
}

.custom-amount-input .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Donation Type Selection */
.donation-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.donation-type-btn {
    display: block;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.donation-type-btn .icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    background: var(--primary-lightest);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.btn-check:checked + .donation-type-btn {
    border-color: var(--primary-color);
    background-color: var(--primary-lightest);
}

.btn-check:checked + .donation-type-btn .icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Recent Donors */
.donor-card {
    text-align: center;
    transition: all 0.3s ease;
}

.donor-avatar {
    margin-bottom: 1.5rem;
}

.avatar-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
}

/* Impact Section */
.impact-card {
    transition: all 0.3s ease;
    background: #fff;
    border: 2px solid transparent;
}

.impact-card:hover {
    border-color: var(--primary-light);
    background: linear-gradient(to bottom right, var(--primary-color), var(--primary-light));
}

.impact-card:hover h4,
.impact-card:hover .text-muted,
.impact-card:hover .text-primary,
.impact-card:hover .fw-bold {
    color: #fff !important;
}

.impact-card:hover .progress {
    background-color: rgba(255, 255, 255, 0.2);
}

.impact-card:hover .icon-circle {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.impact-icon .icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.progress {
    background-color: #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 1s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .amount-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 0.75rem !important;
    }
    
    .btn-amount {
        flex: none; /* Remove flex growth */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .amount-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .donation-type-options {
        grid-template-columns: 1fr;
    }
    
    .amount-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .donation-form-container {
        top: -50px;
        margin-bottom: -50px;
        padding: 2rem !important;
    }
}

/* Utility Classes */
.py-7 { padding-top: 5rem; padding-bottom: 5rem; }
.rounded-xl { border-radius: 1rem; }
.bg-primary-subtle { background-color: var(--primary-lightest); }
.text-primary-light { color: var(--primary-light); }
.flex-1 { flex: 1; }
