/* Página de Doações */

.doacao-main {
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.doacao-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.doacao-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #facc15, #ffff00, #facc15);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.doacao-title i {
    width: 40px;
    height: 40px;
    -webkit-text-fill-color: #ffff00;
}

.doacao-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Cards de Valores */
.doacao-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 8px 8px;
    position: relative;
    isolation: isolate;
}

.doacao-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(250, 204, 21, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    z-index: 1;
    isolation: isolate;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(250, 204, 21, 0.1),
                0 0 15px rgba(250, 204, 21, 0.05);
}

.doacao-card > *:not(.card-badge-recommended) {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.doacao-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); */
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.doacao-card:hover::before {
    left: 100%;
}

.doacao-card:hover {
    transform: translateY(-5px);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(250, 204, 21, 0.2),
                0 0 20px rgba(250, 204, 21, 0.15);
}

.doacao-card.selected {
    border: 2px solid #4ade80;
    background: rgba(74, 222, 128, 0.1);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5),
                0 0 15px rgba(74, 222, 128, 0.3),
                0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.card-icon i {
    width: 32px;
    height: 32px;
    color: #ff4444;
}

.card-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffff00;
    margin-bottom: 0.5rem;
}

.card-label {
    font-size: 0.85rem;
    color: #cccccc;
}

/* Badge Recomendado */
.card-badge-recommended {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
    z-index: 20;
    white-space: nowrap;
    pointer-events: none;
}

/* Campo de Valor Personalizado - Card Customizado */
.custom-card {
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-card:hover {
    transform: none;
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(250, 204, 21, 0.1),
                0 0 15px rgba(250, 204, 21, 0.05);
}

.custom-card:focus-within {
    border: 1px solid rgba(250, 204, 21, 0.5);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3),
                0 0 10px rgba(250, 204, 21, 0.2),
                0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-card.selected:focus-within {
    border: 2px solid #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5),
                0 0 15px rgba(74, 222, 128, 0.3),
                0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-card .card-icon {
    margin-bottom: 0.75rem;
}

.custom-card .card-icon i {
    width: 32px;
    height: 32px;
    color: #ffff00;
}

.custom-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: 2rem;
    width: 100%;
}

.custom-card .card-label {
    font-size: 0.85rem;
    color: #cccccc;
    margin-top: 0;
}

.currency-symbol {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffff00;
}

.custom-input {
    flex: 1;
    background-color: transparent;
    color: #ffff00;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    max-width: 150px;
    min-width: 80px;
    transition: all 0.3s ease;
}

.custom-input::-webkit-inner-spin-button,
.custom-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* .custom-input[type=number] {
    -moz-appearance: textfield;
} */

.custom-input:focus {
    outline: none;
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.custom-input:focus-visible {
    outline: none;
    box-shadow: none;
}

.custom-input::placeholder {
    color: #888;
}

/* Valor Selecionado */
.valor-selecionado {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(74, 222, 128, 0.3);
}

.valor-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.valor-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.valor-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #ffff00;
}

/* Botão de Doação */
.doar-button {
    width: 100%;
    background: linear-gradient(135deg, #ffff00, #facc15);
    color: #1A1A2E;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto;
    max-width: 400px;
}

.doar-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.doar-button:disabled {
    background: #666;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.doar-button.enabled {
    background: linear-gradient(135deg, #ffff00, #facc15);
    color: #1A1A2E;
    cursor: pointer;
}

.doar-button i,
.doar-button .pix-icon {
    width: 37.5px;
    height: 25px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Responsividade */
@media (max-width: 768px) {
    .doacao-title {
        font-size: 2rem;
    }

    .doacao-description {
        font-size: 1rem;
    }

    .doacao-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .doacao-card {
        padding: 1rem 0.75rem;
    }

    .card-icon i {
        width: 28px;
        height: 28px;
    }

    .card-value {
        font-size: 1.25rem;
    }

    .card-label {
        font-size: 0.75rem;
    }

    .card-badge-recommended {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        top: -6px;
        right: -6px;
    }

    .custom-card {
        padding: 1rem 0.75rem !important;
    }

    .custom-card .card-icon {
        margin-bottom: 0.5rem;
    }

    .custom-card .card-icon i {
        width: 28px;
        height: 28px;
    }

    .custom-input {
        font-size: 1.25rem;
        max-width: 120px;
    }

    .currency-symbol {
        font-size: 1.25rem;
    }

    .custom-card .card-label {
        font-size: 0.75rem;
    }

    .doar-button {
        font-size: 1.1rem;
        padding: 1rem;
        max-width: 100%;
    }

    .valor-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .doacao-main {
        padding: 2rem 1rem;
    }

    .doacao-title {
        font-size: 1.75rem;
        flex-direction: column;
    }

    .doacao-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .doacao-card {
        padding: 0.875rem 0.5rem;
    }

    .card-icon {
        margin-bottom: 0.5rem;
    }

    .card-icon i {
        width: 24px;
        height: 24px;
    }

    .card-value {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .card-label {
        font-size: 0.7rem;
    }

    .card-badge-recommended {
        font-size: 0.6rem;
        padding: 0.3rem 0.45rem;
        top: -5px;
        right: -5px;
    }

    .custom-card {
        padding: 0.875rem 0.5rem !important;
    }

    .custom-card .card-icon {
        margin-bottom: 0.5rem;
    }

    .custom-card .card-icon i {
        width: 24px;
        height: 24px;
    }

    .custom-input-wrapper {
        gap: 0.4rem;
        margin-bottom: 0.25rem;
    }

    .custom-input {
        font-size: 1.1rem;
        max-width: 100px;
    }

    .currency-symbol {
        font-size: 1.1rem;
    }

    .custom-card .card-label {
        font-size: 0.7rem;
    }

    .doar-button {
        width: 100%;
        min-width: unset;
    }
}

