/* Masjid Building Expansion Campaign Styles */

/* Global Styles */
* {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Color Variables - Professional Emerald Green Palette */
:root {
    --primary-green: #059669;
    --primary-green-light: #10B981;
    --primary-green-dark: #047857;
    --accent-green: #34D399;
    --accent-green-light: #6EE7B7;
    --background-cream: #F8F9FA;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
}

/* Background gradients and shadows */
.gradient-bg { 
    background: linear-gradient(135deg, #D1FAE5 0%, var(--primary-green-light) 100%); 
}

.card-shadow { 
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.08), 0 2px 4px -1px rgba(5, 150, 105, 0.04);
}

/* Animations */
.pulse-animation { 
    animation: pulse 2s infinite; 
}

@keyframes pulse { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.05); } 
}

.urgent-badge { 
    animation: glow 2s ease-in-out infinite alternate; 
}

@keyframes glow { 
    from { box-shadow: 0 0 5px #ef4444; } 
    to { box-shadow: 0 0 20px #ef4444, 0 0 30px #ef4444; } 
}

.heart-beat { 
    animation: heartbeat 1.5s ease-in-out infinite; 
}

@keyframes heartbeat { 
    0% { transform: scale(1); } 
    14% { transform: scale(1.1); } 
    28% { transform: scale(1); } 
    42% { transform: scale(1.1); } 
    70% { transform: scale(1); } 
}

/* Progress bar styling */
.progress-bar { 
    background: linear-gradient(90deg, var(--accent-green-light) 0%, var(--primary-green-light) 100%); 
}

.progress-container {
    height: 10px;
    background-color: #E8F5E9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--primary-green) 100%);
    border-radius: 10px;
    width: 35%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.3);
}

/* Video placeholder styling */
.video-placeholder {
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-placeholder::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Wistia player styling */
wistia-player[media-id='jrtgsh5kgi']:not(:defined) { 
    background: center / contain no-repeat url('https://fast.wistia.com/embed/medias/jrtgsh5kgi/swatch'); 
    display: block; 
    filter: blur(5px); 
    padding-top:56.25%; 
}

/* Share button hover effects */
.share-btn:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Custom donation amount buttons */
.amount-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
}

.amount-btn:hover {
    border-color: var(--primary-green-dark);
    background-color: var(--primary-green);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.amount-btn.active {
    border-color: var(--primary-green-dark);
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Quick Donation Buttons - Override inline styles on hover */
.quick-donation-btn:hover {
    background-color: #059669 !important;
    color: white !important;
}
.hover-text-white:hover{
    color: white !important;
}
/* Donation Impact Cards - Professional Redesign */
.donation-card {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-green) 0%, var(--primary-green) 100%);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green-light);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.12), 0 4px 8px rgba(5, 150, 105, 0.08);
}

.donation-card:hover::before {
    transform: scaleY(1);
}

.donation-card.active {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.05) 0%, rgba(52, 211, 153, 0.08) 100%);
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.1);
}

.donation-card.active::before {
    transform: scaleY(1);
}

.donation-card-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.donation-card:hover .donation-card-amount {
    color: var(--primary-green);
}

.donation-card.active .donation-card-amount {
    color: var(--primary-green);
}

.donation-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--accent-green-light) 0%, var(--accent-green) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.donation-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.donation-card-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

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

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Modal styling */
#modal-overlay {
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

#modal-overlay.active {
    display: block !important;
}

#modal-container {
    max-width: 90%;
    width: 800px;
    box-shadow: 0 20px 60px -10px rgba(5, 150, 105, 0.25), 0 10px 20px -5px rgba(5, 150, 105, 0.15);
    transition: all 0.3s ease;
}

#modal-content {
    line-height: 1.7;
    color: var(--text-primary);
}

#modal-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-green-dark);
    letter-spacing: -0.025em;
}

#modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    color: var(--primary-green);
    letter-spacing: -0.015em;
}

#modal-content p, #modal-content ul {
    margin-bottom: 1.125rem;
    color: var(--text-secondary);
}

#modal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

#modal-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mobile-full { 
        width: 100% !important; 
    }
    
    .mobile-stack { 
        flex-direction: column !important; 
    }
    
    .mobile-center { 
        text-align: center !important; 
    }
}

/* Professional Typography & Text Colors */
body {
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-gray-800 {
    color: var(--text-primary) !important;
}

.text-gray-700 {
    color: var(--text-secondary) !important;
}

.text-gray-600 {
    color: var(--text-muted) !important;
}

/* Button & Interactive Elements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

/* Featured Quote Box */
.quote-box {
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.08) 0%, rgba(52, 211, 153, 0.12) 100%);
    border-left: 4px solid var(--primary-green);
}

/* Community Builder Card - Premium Style */
.premium-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 16px 20px !important;
}

.premium-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: transform 0.6s ease;
}

.premium-card:hover::after {
    transform: translate(-25%, -25%);
}

.premium-card.active {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.2);
}

/* Subtle Animations for Professional Feel */
.smooth-appear {
    animation: smoothAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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