/* ============================================
   DONATIONS PAGE - Cool Britannia Dark Theme
   ============================================ */

/* Page Header */
.donations-header {
    text-align: center;
    padding: 0 1rem 1.5rem;
    margin-bottom: 2rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.donations-header::before {
    content: none;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.donations-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-primary);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.donations-header p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Intro Section */
.donations-intro {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
    border: 1px solid rgba(228, 255, 26, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.donations-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
}

.donations-intro strong {
    color: var(--neon-yellow);
    font-weight: 600;
}

/* Total Banner */
.total-banner {
    background: linear-gradient(135deg, rgba(228, 255, 26, 0.15) 0%, rgba(228, 255, 26, 0.05) 100%);
    border: 2px solid var(--neon-yellow);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.total-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(228, 255, 26, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.total-banner-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.total-banner-amount {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: linear-gradient(135deg, var(--neon-yellow), #90EE90, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Donations Table */
.donations-table-wrapper {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
    border: 1px solid rgba(228, 255, 26, 0.3);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.donations-table {
    width: 100%;
    border-collapse: collapse;
}

.donations-table th,
.donations-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.donations-table th {
    background: linear-gradient(180deg, rgba(228, 255, 26, 0.15) 0%, rgba(228, 255, 26, 0.05) 100%);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--neon-yellow);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(228, 255, 26, 0.3);
}

.donations-table tbody tr {
    transition: all 0.3s ease;
}

.donations-table tbody tr:hover {
    background: rgba(228, 255, 26, 0.08);
}

.donations-table tbody tr.adhoc-row {
    background: rgba(255, 45, 146, 0.08);
}

.donations-table tbody tr.adhoc-row:hover {
    background: rgba(255, 45, 146, 0.15);
}

.donations-table .month-cell {
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.donations-table .charity-cell {
    color: var(--text-secondary);
}

.donations-table .charity-cell a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.donations-table .charity-cell a:hover {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(228, 255, 26, 0.5);
}

.donations-table .type-cell {
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text-muted);
}

.donations-table .amount-cell {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #90EE90;
    white-space: nowrap;
    text-align: right;
    font-size: 1.05rem;
}

/* Total Count Footer */
.total-count {
    text-align: center;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 45, 146, 0.15) 0%, rgba(255, 45, 146, 0.05) 100%);
    border: 1px solid rgba(255, 45, 146, 0.4);
    border-radius: var(--border-radius-lg);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.total-count strong {
    color: var(--neon-pink);
    font-size: 1.3rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Source Link */
.source-link {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 0.95rem;
}

.source-link a {
    color: var(--neon-cyan);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.source-link a:hover {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(228, 255, 26, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .donations-header {
        padding: 1.5rem 1rem;
    }
    
    .donations-header h1 {
        font-size: 2rem;
    }
    
    .total-banner {
        padding: 1.5rem 1rem;
    }
    
    .total-banner-amount {
        font-size: 2rem;
    }
    
    .donations-table th,
    .donations-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .donations-table .type-cell {
        font-size: 0.8rem;
    }
    
    /* Stack on mobile */
    .donations-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .donations-header h1 {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }
    
    .donations-table {
        font-size: 0.8rem;
    }
    
    .total-count {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .total-count strong {
        font-size: 1.1rem;
    }
}
