/*
================================================
CONTRIBUTIONS PAGE - PREMIUM STYLES
================================================
*/

.contributions-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.contributions-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contributions-hero .stats-banner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-item .count {
    font-size: 2rem;
    font-weight: 700;
}

.stats-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contribution Tables */
.contribution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .contribution-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contribution-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contribution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contribution-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.contribution-card h3 i {
    color: var(--primary-color);
}

/* Custom Table Styles */
.table-responsive {
    overflow-x: auto;
}

.contribution-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.contribution-table th {
    text-align: left;
    padding: 1rem;
    background: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.contribution-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.contribution-table tr:last-child td {
    border-bottom: none;
}

.contribution-table tr:hover td {
    background: var(--bg-subtle);
    color: var(--text-main);
}

.donor-name {
    font-weight: 600;
    color: var(--text-main);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-bkash {
    background: #fdf2f8;
    color: #db2777;
}

.badge-cash {
    background: #ecfdf5;
    color: #059669;
}

.badge-resource {
    background: #eff6ff;
    color: #2563eb;
}

/* Empty State */
.empty-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Search Bar */
.search-container {
    margin-bottom: 2rem;
    position: relative;
    max-width: 400px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-surface);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .contributions-hero {
        padding: 2.5rem 1rem;
        margin-bottom: 2rem;
    }

    .contributions-hero h2 {
        font-size: 1.75rem;
    }

    .contributions-hero .stats-banner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stats-item .count {
        font-size: 1.5rem;
    }

    .search-container {
        max-width: 100%;
    }

    .contribution-card {
        padding: 1.25rem;
    }

    .contribution-card h3 {
        font-size: 1.25rem;
    }

    /* Transform Table to Cards on Mobile */
    .contribution-table {
        display: block;
    }

    .contribution-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .contribution-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contribution-table tr {
        display: flex;
        flex-direction: column;
        background: var(--bg-subtle);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem;
        position: relative;
    }

    .contribution-table td {
        display: flex;
        padding: 0.4rem 0;
        border: none;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-size: 0.9rem;
    }

    /* Add labels before values on mobile */
    .contribution-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-main);
        margin-right: 1rem;
    }

    .donor-name {
        font-size: 1.1rem;
    }

    .badge {
        margin-left: auto;
    }

    /* Adjust specific rows */
    .contribution-table tr td:first-child {
        border-bottom: 1px dashed var(--border-color);
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        flex-direction: column;
        align-items: stretch;
    }

    .language-toggle button {
        text-align: center;
    }
}

/* Content visibility same as donation page */
.content-en,
.content-bn {
    display: none;
}

.content-en.active,
.content-bn.active {
    display: block;
}