/* ===== Donation Page Styles ===== */

.donation-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ===== Hero Section ===== */
.donation-hero {
    background: linear-gradient(135deg, #16184d 0%, #202368 50%, #3a3d8c 100%);
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
}

.donation-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('assets/blurred_snack_texture.png');
    background-size: cover;
    background-position: center;
    filter: blur(15px) contrast(1.4) brightness(0.8) saturate(1.2);
    opacity: 0.6;
    z-index: 1;
}

.donation-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(32, 35, 104, 0.2) 0%, rgba(22, 24, 77, 0.7) 70%, rgba(10, 11, 40, 0.9) 100%);
    z-index: 2;
}

.donation-hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.donation-title {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.donation-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* ===== Donation Methods Section ===== */
.donation-methods-section {
    padding: 5rem 2rem;
    background: var(--color-white);
}

.donation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-donation {
    font-family: var(--font-header);
    font-size: 2.8rem;
    color: #202368;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.donation-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.donation-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #202368, #C51111);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.donation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #202368;
}

.donation-card:hover::before {
    transform: scaleX(1);
}

.donation-card.featured {
    border: 2px solid #202368;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8ff 100%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #C51111, #ff4444);
    color: var(--color-white);
    padding: 0.4rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(197, 17, 17, 0.3);
}

.donation-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #202368, #4A4A9E);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(32, 35, 104, 0.3);
    transition: all 0.4s ease;
}

.donation-card:hover .donation-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(32, 35, 104, 0.4);
}

.donation-card-icon i {
    font-size: 2.2rem;
    color: var(--color-white);
}

.donation-card-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--color-black);
    margin-bottom: 1rem;
    font-weight: 600;
}

.donation-card-description {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-donation {
    background: linear-gradient(135deg, #202368, #4A4A9E);
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(32, 35, 104, 0.3);
    width: 100%;
    justify-content: center;
}

.btn-donation:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(32, 35, 104, 0.4);
    background: linear-gradient(135deg, #1a1d5a, #3d3d85);
}

.btn-donation i {
    transition: transform 0.3s ease;
}

.btn-donation:hover i {
    transform: translateX(5px);
}

/* ===== Raffle Information Section ===== */
.raffle-info-section {
    background: linear-gradient(135deg, var(--color-light-gray) 0%, #f0f0f5 100%);
    padding: 5rem 2rem;
}

.raffle-container {
    max-width: 1000px;
    margin: 0 auto;
}

.raffle-header {
    text-align: center;
    margin-bottom: 3rem;
}

.raffle-icon {
    font-size: 4rem;
    color: #C51111;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.raffle-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    color: #202368;
    margin-bottom: 1rem;
    font-weight: 700;
}

.raffle-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--color-dark-gray);
    font-weight: 500;
}

.raffle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.raffle-detail-item {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.raffle-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.raffle-detail-item i {
    font-size: 2.5rem;
    color: #202368;
    margin-bottom: 1rem;
}

.raffle-detail-item h4 {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.raffle-detail-item p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    font-weight: 500;
}

/* ===== Recent Donations Section ===== */
.recent-donations-section {
    padding: 5rem 2rem;
    background: var(--color-white);
}

.donations-list-container {
    max-width: 900px;
    margin: 0 auto;
}

.donations-list {
    margin-top: 2rem;
}

.no-donations {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--color-gray);
    padding: 3rem;
    background: var(--color-light-gray);
    border-radius: 15px;
}

.donation-item {
    background: var(--color-white);
    border: 2px solid var(--color-medium-gray);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.donation-item:hover {
    border-color: #202368;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.donation-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #202368, #4A4A9E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.donation-item-icon i {
    color: var(--color-white);
    font-size: 1.3rem;
}

.donation-item-content {
    flex-grow: 1;
}

.donation-item-name {
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: var(--color-black);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.donation-item-message {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    font-style: italic;
}

.donation-item-amount {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: #C51111;
    font-weight: 700;
}

/* ===== Modal Styles ===== */
.modal-donation {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-donation.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-donation-content {
    background: var(--color-white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal-donation {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal-donation:hover {
    color: var(--color-black);
    background: var(--color-light-gray);
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: #202368;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-description {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--color-dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Payment Form Placeholder */
.payment-form-placeholder {
    background: var(--color-light-gray);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
}

.payment-form-placeholder p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    color: var(--color-dark-gray);
}

/* Crypto Options */
.crypto-info-placeholder {
    background: var(--color-light-gray);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
}

.crypto-info-placeholder p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    color: var(--color-dark-gray);
    margin-bottom: 2rem;
}

.crypto-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.crypto-method-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.crypto-method-item strong {
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: var(--color-black);
    display: block;
    margin-bottom: 0.5rem;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #202368;
    background: #f0f0f5;
    padding: 1rem;
    border-radius: 10px;
    word-break: break-all;
    border: 1px solid var(--color-medium-gray);
    margin: 0.8rem 0;
    text-align: center;
    font-weight: 600;
}

.btn-copy-address {
    background: var(--color-light-gray);
    border: 1px solid var(--color-medium-gray);
    color: #202368;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1.5rem;
}

.btn-copy-address:hover {
    background: #202368;
    color: var(--color-white);
}

.qr-container {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.qr-image {
    width: 200px;
    height: 200px;
    margin-bottom: 0.8rem;
    border-radius: 10px;
}

.qr-container span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Donation Form */
.donation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-donation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-donation label {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-black);
    font-weight: 600;
}

.form-group-donation input,
.form-group-donation textarea {
    font-family: var(--font-secondary);
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--color-medium-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--color-white);
}

.form-group-donation input:focus,
.form-group-donation textarea:focus {
    outline: none;
    border-color: #202368;
    box-shadow: 0 0 0 3px rgba(32, 35, 104, 0.1);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.amount-btn {
    background: var(--color-light-gray);
    border: 2px solid var(--color-medium-gray);
    padding: 0.8rem;
    border-radius: 10px;
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: #202368;
    color: var(--color-white);
    border-color: #202368;
}

.amount-btn.active {
    background: #202368;
    color: var(--color-white);
    border-color: #202368;
}

.btn-submit-donation {
    background: linear-gradient(135deg, #0070ba, #1f8dd6);
    color: var(--color-white);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(0, 112, 186, 0.3);
    margin-top: 1rem;
}

.btn-submit-donation:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 112, 186, 0.4);
}

/* Success Modal */
.success-modal-content {
    max-width: 700px;
    text-align: center;
}

.success-animation {
    margin-bottom: 1.5rem;
}

.success-animation i {
    font-size: 5rem;
    color: #4CAF50;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-modal-title {
    font-family: var(--font-header);
    font-size: 2.5rem;
    color: #202368;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-modal-description {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    color: var(--color-dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Raffle Ticket */
.raffle-ticket {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8ff 100%);
    border: 3px dashed #202368;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.raffle-ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #202368, #C51111, #202368);
}

.ticket-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed var(--color-medium-gray);
    margin-bottom: 1.5rem;
}

.ticket-logo {
    height: 50px;
    width: auto;
    margin-bottom: 0.8rem;
}

.ticket-header h4 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: #202368;
    font-weight: 700;
    letter-spacing: 2px;
}

.ticket-number {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ticket-label {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-gray);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticket-value {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    color: #C51111;
    font-weight: 700;
    display: block;
    letter-spacing: 2px;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.ticket-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.ticket-info-label {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-dark-gray);
    font-weight: 600;
}

.ticket-info-value {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-black);
    font-weight: 500;
}

.ticket-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--color-medium-gray);
}

.ticket-footer p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-dark-gray);
    margin-bottom: 1rem;
    font-weight: 600;
}

.ticket-barcode {
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 50px;
    align-items: flex-end;
}

.barcode-line {
    width: 3px;
    background: var(--color-black);
    height: 100%;
    opacity: 0.8;
}

.barcode-line:nth-child(2n) {
    height: 70%;
}

.barcode-line:nth-child(3n) {
    height: 85%;
}

.btn-download-ticket {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
    margin: 1.5rem auto 1rem;
    width: 100%;
    max-width: 300px;
}

.btn-download-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
}

.btn-close-success-donation {
    background: var(--color-light-gray);
    color: var(--color-black);
    border: 2px solid var(--color-medium-gray);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-close-success-donation:hover {
    background: var(--color-medium-gray);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .donation-title {
        font-size: 2.5rem;
    }

    .donation-subtitle {
        font-size: 1.1rem;
    }

    .section-title-donation {
        font-size: 2.2rem;
    }

    .donation-methods-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .raffle-title {
        font-size: 2.2rem;
    }

    .raffle-details {
        grid-template-columns: 1fr;
    }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-donation-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .ticket-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .donation-hero {
        padding: 3rem 1.5rem;
    }

    .donation-title {
        font-size: 2rem;
    }

    .donation-subtitle {
        font-size: 1rem;
    }

    .donation-card {
        padding: 2rem 1.5rem;
    }

    .raffle-icon {
        font-size: 3rem;
    }

    .ticket-value {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* ===== Toast Notification ===== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #202368;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-notification i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.toast-notification span {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
}