/* ================================
   File: donate.css
   Description: Fun and engaging donate page styles
   Author: GitHub Copilot
   Date: November 10, 2025
   ================================ */

/*------------------------------------*\
  #VARIABLES
\*------------------------------------*/
:root {
    /* Colors - Aligned with brand */
    --donate-primary: #1E40AF;
    --donate-secondary: #60A5FA;
    --donate-accent: #3B82F6;
    --donate-text: #1F2937;
    --donate-text-light: #6B7280;
    --donate-bg: #F9FAFB;
    --donate-white: #FFFFFF;
    --donate-gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    
    /* Typography */
    --donate-font: 'Inter', system-ui, -apple-system, sans-serif;
    --donate-title-size: clamp(2.5rem, 5vw, 4rem);
    --donate-heading-size: clamp(1.75rem, 3vw, 2.5rem);
    
    /* Spacing */
    --donate-section-spacing: clamp(3rem, 6vw, 5rem);
    
    /* Effects */
    --donate-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --donate-shadow-lg: 0 20px 40px rgba(30, 64, 175, 0.15);
    --donate-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --donate-radius: 1rem;
    --donate-radius-lg: 1.5rem;
}

/*------------------------------------*\
  #BASE
\*------------------------------------*/
.donate-page {
    font-family: var(--donate-font);
    color: var(--donate-text);
    background: var(--donate-bg);
    overflow-x: hidden;
}

.donate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-highlight {
    background: linear-gradient(120deg, var(--donate-accent) 0%, var(--donate-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*------------------------------------*\
  #HERO SECTION
\*------------------------------------*/
.donate-hero {
    padding: 6rem 0 4rem;
    background: var(--donate-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donate-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.coffee-animation {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.coffee-cup {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.coffee-svg {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
}

.steam-path {
    animation: steamFlow 2s ease-in-out infinite;
}

.steam-1 {
    animation-delay: 0s;
}

.steam-2 {
    animation-delay: 0.3s;
}

.steam-3 {
    animation-delay: 0.6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes steamFlow {
    0% { 
        opacity: 0;
        transform: translateY(0);
    }
    50% { 
        opacity: 0.6;
    }
    100% { 
        opacity: 0;
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: var(--donate-title-size);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.title-nowrap {
    white-space: nowrap;
    display: inline-block;
}

.hero-description {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-style: italic;
    text-align: center;
}

/*------------------------------------*\
  #DONATION METHODS SECTION
\*------------------------------------*/
.donation-methods-section {
    padding: var(--donate-section-spacing) 0;
    background: var(--donate-bg);
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.donation-card {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--donate-radius-lg);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08);
    transition: var(--donate-transition);
    text-align: center;
    border: 2px solid rgba(30, 64, 175, 0.1);
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--donate-gradient);
    opacity: 0;
    transition: var(--donate-transition);
}

.donation-card.primary::before {
    opacity: 1;
}

.donation-card.primary {
    border-color: var(--donate-primary);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.15);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.2);
    border-color: var(--donate-primary);
}

.donation-card:hover::before {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.75rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-icon {
    font-size: 4.5rem;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.15));
}

.card-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--donate-text);
    margin-bottom: 1.75rem;
    background: var(--donate-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-wrapper {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--donate-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid rgba(30, 64, 175, 0.1);
    box-shadow: inset 0 2px 8px rgba(30, 64, 175, 0.05);
}

.qr-code {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
    transition: var(--donate-transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.75) 0%, 
        rgba(248, 250, 252, 0.85) 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.donation-card.qr-revealed .qr-overlay {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.qr-reveal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2.5rem;
    background: var(--donate-gradient);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
}

.qr-reveal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.qr-reveal-btn:hover::before {
    width: 300px;
    height: 300px;
}

.qr-reveal-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.4);
}

.qr-reveal-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-icon {
    font-size: 2rem;
    animation: eyeBlink 3s ease-in-out infinite;
}

@keyframes eyeBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

.btn-text {
    font-family: var(--donate-font);
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    position: relative;
    z-index: 1;
}

.card-note {
    font-size: 0.9rem;
    color: var(--donate-text-light);
    font-style: italic;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: 0.5rem;
    border-left: 3px solid var(--donate-primary);
    margin-top: 1rem;
}

.no-methods {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.125rem;
    color: var(--donate-text-light);
}

/*------------------------------------*\
  #THANK YOU SECTION
\*------------------------------------*/
.thankyou-section {
    padding: var(--donate-section-spacing) 0;
    background: var(--donate-white);
}

.thankyou-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: var(--donate-radius-lg);
    border: 2px solid rgba(30, 64, 175, 0.1);
}

.thankyou-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.thankyou-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--donate-text);
    margin-bottom: 1rem;
}

.thankyou-text {
    font-size: 1.125rem;
    color: var(--donate-text-light);
    line-height: 1.6;
}

/*------------------------------------*\
  #RESPONSIVE
\*------------------------------------*/
@media (max-width: 768px) {
    .donate-hero {
        padding: 4rem 0 3rem;
    }
    
    .coffee-cup {
        font-size: 6rem;
    }
    
    .steam {
        font-size: 2rem;
        top: -20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .donation-grid {
        grid-template-columns: 1fr;
    }
    
    .thankyou-box {
        padding: 2.5rem 1.5rem;
    }
    
    .thankyou-emoji {
        font-size: 3rem;
    }
    
    .thankyou-title {
        font-size: 1.75rem;
    }
}

/*------------------------------------*\
  #ACCESSIBILITY
\*------------------------------------*/
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
