/**
 * Doações - UI/UX Moderna Gold Standard
 * Design inspirado em Stripe, Linear, Vercel
 */

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 20px;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-card {
    height: 200px;
    border-radius: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Micro-interações */
.btn-micro-interaction {
    position: relative;
    overflow: hidden;
}

.btn-micro-interaction::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-micro-interaction:active::before {
    width: 300px;
    height: 300px;
}

/* Success Animation */
@keyframes success-check {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-check {
    animation: success-check 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Confetti Animation */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confetti 3s ease-out forwards;
    z-index: 9999;
}

/* Donation Page Modern */
.donation-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 1rem;
}

.donation-container-modern {
    max-width: 900px;
    margin: 0 auto;
}

.donation-hero-modern {
    text-align: center;
    padding: 3.25rem 2rem;
    background: linear-gradient(135deg, #0f172a, #111827);
    border-radius: 28px;
    color: #f8fafc;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.donation-hero-eyebrow {
    display: inline-flex;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.donation-hero-modern h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 0.75rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.donation-hero-modern p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: #e2e8f0;
}

/* Amount Selection Modern */
.amount-selection {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.donation-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 0;
}

.impact-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.impact-card h3 {
    margin: 0 0 0.5rem;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.impact-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.amount-selection h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-amounts-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn-modern {
    padding: 1.75rem 1.5rem;
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.amount-btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.amount-btn-modern span {
    position: relative;
    z-index: 1;
}

.amount-btn-modern:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.amount-btn-modern:hover::after {
    opacity: 1;
}

.amount-btn-modern:hover span {
    color: white;
}

.amount-btn-modern.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.amount-btn-modern.selected span {
    color: white;
}

/* Custom Amount Input Modern */
.custom-amount-modern {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.custom-amount-modern label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.custom-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.custom-amount-wrapper:focus-within {
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.custom-amount-wrapper .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.custom-amount-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    text-align: left;
    padding: 0.5rem 0;
}

.custom-amount-wrapper input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

/* Form Modern */
.donation-form-modern {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.form-section-title i {
    color: #10b981;
    font-size: 1.5rem;
}

/* Toggle Switch Modern */
.toggle-switch-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s;
}

.toggle-switch-modern:hover {
    background: #f1f5f9;
}

.toggle-switch-modern input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-modern {
    position: relative;
    width: 56px;
    height: 32px;
    background: #cbd5e1;
    border-radius: 9999px;
    transition: all 0.3s;
}

.toggle-slider-modern::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 4px;
    top: 4px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch-modern input:checked + .toggle-slider-modern {
    background: #10b981;
}

.toggle-switch-modern input:checked + .toggle-slider-modern::before {
    transform: translateX(24px);
}

/* Input Modern */
.input-modern {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    transition: all 0.3s;
    font-family: inherit;
}

.input-modern:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-modern::placeholder {
    color: #9ca3af;
}

/* Button Modern */
.btn-donate-modern {
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-donate-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-donate-modern:hover::before {
    left: 100%;
}

.btn-donate-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-donate-modern:active {
    transform: translateY(0);
}

.btn-donate-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Card Modern */
.result-card-modern {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-code-container-modern {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    display: inline-block;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.qr-code-container-modern img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Status Indicator Modern */
.status-indicator-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 16px;
    border-left: 4px solid #0ea5e9;
    margin-top: 1.5rem;
}

.status-indicator-modern .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0f2fe;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .donation-hero-modern {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }
    
    .amount-selection,
    .donation-form-modern {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .quick-amounts-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-amount-wrapper input {
        font-size: 1.5rem;
    }
}

