/* Donate page specific styles */
:root {
    --crypto-box-bg: #4f4f4f33;
}

.donate-section {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.paypal-donate {
    background: linear-gradient(135deg, rgba(0, 112, 186, 0.123), rgba(0, 0, 0, 0.4));
}

.crypto-donate {
    background: linear-gradient(135deg, rgba(245, 216, 161, 0.116), rgba(0, 0, 0, 0.4));
}

.donate-button {
    background: #0070ba;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.5em;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    z-index: 2;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7);
}

.crypto-section {
    background-color: var(--crypto-box-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    z-index: 2;
    position: relative;
    width: 90vw; /* Scale to viewport width */
    max-width: 750px; /* Maximum width for larger screens */
    margin-left: auto;
    margin-right: auto; /* Center within .content */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.crypto-wallet {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* Prevent wrapping */
    margin-top: 10px;
    width: 90vw; /* Scale to viewport width */
    max-width: 750px; /* Match .crypto-section */
    height: 50px; /* Fixed height for uniformity */
    box-sizing: border-box;
}

.crypto-wallet i {
    font-size: 30px;
    width: 40px; /* Fixed icon width */
    height: 100%; /* Match parent height */
    display: flex;
    align-items: center; /* Center icon vertically */
}

.crypto-wallet .wallet-address {
    flex: 1; /* Take remaining space */
    width: calc(90vw - 150px); /* Adjust for icon, button, and gaps */
    max-width: 600px; /* Match max-width of container */
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.1); /* Subtle white tint to match page */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 5px;
    color: white;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 100%; /* Match parent height */
    display: flex;
    align-items: center; /* Center text vertically */
    box-sizing: border-box;
}

.crypto-wallet .copy-button {
    background: none;
    border: 1px solid white;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    text-shadow: 2px 2px 4px black;
    width: 80px; /* Fixed button width */
    height: 100%; /* Match parent height */
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .donate-button {
        font-size: 1.2em;
        padding: 12px 24px;
    }

    .crypto-section {
        width: 90vw;
        max-width: 500px; /* Fixed width for uniformity */
    }

    .crypto-wallet {
        width: 90vw;
        max-width: 500px; /* Match .crypto-section */
        height: 45px; /* Slightly reduced height */
    }

    .crypto-wallet .wallet-address {
        width: calc(90vw - 130px); /* Adjust for icon, button, and gaps */
        max-width: 380px; /* Match max-width of container */
        font-size: 0.8em;
        padding: 8px;
    }

    .crypto-wallet .copy-button {
        width: 70px; /* Adjusted button width */
        padding: 4px 8px;
        font-size: 0.9em;
    }

    .crypto-wallet i {
        font-size: 24px;
        width: 36px; /* Adjusted icon width */
    }
}

@media (max-width: 400px) {
    .donate-button {
        font-size: 1em;
        padding: 10px 20px;
    }

    .crypto-section {
        width: 90vw;
        max-width: 300px; /* Fixed width for small screens */
    }

    .crypto-wallet {
        width: 90vw;
        max-width: 300px; /* Match .crypto-section */
        height: 40px; /* Further reduced height */
    }

    .crypto-wallet .wallet-address {
        width: calc(90vw - 110px); /* Adjust for icon, button, and gaps */
        max-width: 200px; /* Match max-width of container */
        font-size: 0.75em;
        padding: 6px;
    }

    .crypto-wallet .copy-button {
        width: 60px; /* Adjusted button width */
        padding: 3px 6px;
        font-size: 0.8em;
    }

    .crypto-wallet i {
        font-size: 20px;
        width: 32px; /* Adjusted icon width */
    }
}

@media (max-width: 320px) {
    .crypto-section {
        width: 90vw;
        max-width: 280px; /* Slightly smaller for very small screens */
    }

    .crypto-wallet {
        width: 90vw;
        max-width: 280px; /* Match .crypto-section */
        height: 38px; /* Slightly smaller height */
    }

    .crypto-wallet .wallet-address {
        width: calc(90vw - 106px); /* Adjust for icon, button, and gaps */
        max-width: 190px; /* Match max-width of container */
        font-size: 0.7em;
        padding: 5px;
    }

    .crypto-wallet .copy-button {
        width: 58px; /* Slightly smaller button */
        padding: 3px 5px;
        font-size: 0.75em;
    }

    .crypto-wallet i {
        font-size: 18px;
        width: 30px; /* Slightly smaller icon */
    }
}

