/* ===== PÁGINA DE DOAÇÃO - NOVO LAYOUT ===== */

body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

html {
    margin: 0;
    padding: 0;
}

.donation-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.donation-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.back-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #00d4aa;
}

.donation-logo {
    height: 40px;
}

.donation-page-main {
    min-height: calc(100vh - 80px);
    background: #f9f9f9;
    padding: 2rem;
}

.donation-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== LADO ESQUERDO - INFORMAÇÕES DO CANDIDATO ===== */

.donation-left {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.candidate-header {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}

.candidate-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
}

.candidate-header-info {
    flex: 1;
}

.candidate-header-info h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
}

.candidate-position {
    color: #666;
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.candidate-meta-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.badge-pill-role {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: #111111;
    border: 1px solid #e0e0e0;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.badge-pill-role svg {
    width: 15px;
    height: 15px;
    stroke: #333;
}

.badge-pill-party {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #000000;
    color: #ffb800;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-pill-party svg {
    width: 15px;
    height: 15px;
    stroke: #ffb800;
}

.candidate-image-section {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.candidate-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.candidate-description {
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 2rem 0.5rem;
    justify-content: flex-start;
    align-items: center;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.social-icon:hover {
    color: #00d4aa;
    transform: translateY(-1px);
}

[data-theme="dark"] .social-icon {
    color: #9a9a9a;
}

[data-theme="dark"] .social-icon:hover {
    color: #00d4aa;
}

/* ===== LADO DIREITO - PAINEL DE DOAÇÃO ===== */

.donation-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.donation-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.panel-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

.panel-logo {
    height: 30px;
    margin-bottom: 0.5rem;
}

.panel-subtitle {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

.total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111111;
    text-align: center;
    margin: 1rem 0;
    letter-spacing: -0.5px;
}

.live-badge {
    text-align: center;
    color: #111111;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #111111;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(17, 17, 17, 0.4);
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(17, 17, 17, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(17, 17, 17, 0);
    }
}

.supporters-count {
    text-align: center;
    color: #111111;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.supporters-count svg {
    width: 16px;
    height: 16px;
    fill: #ff3366;
}

.progress-bar-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00b89e);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.progress-percentage {
    font-weight: 600;
    color: #333;
}

.amount-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-btn-grid {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.amount-btn-grid:hover {
    border-color: #00d4aa;
    color: #00d4aa;
}

.amount-btn-grid.active {
    background: #00d4aa;
    color: white;
    border-color: #00d4aa;
}

.custom-amount-section {
    margin-bottom: 1.5rem;
}

.custom-amount-section label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.custom-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.custom-input:focus {
    outline: none;
    border-color: #00d4aa;
}

.btn-donate-primary {
    width: 100%;
    padding: 1.2rem;
    background: #111111;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-donate-primary svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.btn-donate-primary:hover {
    background: #222222;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVO ===== */

@media (max-width: 1024px) {
    .donation-content {
        grid-template-columns: 1fr;
    }
    
    .donation-right {
        position: static;
    }
    
    .candidate-image-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .donation-page-main {
        padding: 1rem;
    }
    
    .candidate-header {
        flex-direction: column;
        text-align: center;
    }
    
    .candidate-photo {
        margin: 0 auto;
    }
    
    .candidate-header-info h1 {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .amount-buttons-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== DESCRIÇÃO COMPLETA E FORMULÁRIO DE APOIO ===== */
.candidate-description p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #68717a;
}

.description-toggle {
    margin-top: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #20252b;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.volunteer-card {
    width: min(100%, calc(100% - 412px));
    margin: 2rem 0;
    padding: 2rem 3rem;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.volunteer-card h2 {
    margin: 0 0 0.35rem;
    color: #20252b;
    font-size: 1.15rem;
}

.volunteer-card > p {
    margin: 0 0 1.5rem;
    color: #68717a;
}

.volunteer-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.field-icon {
    width: 20px;
    color: #aab0b6;
    text-align: center;
    flex: 0 0 20px;
}

.form-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #343a40;
    font: inherit;
}

.form-field input::placeholder {
    color: #aab0b6;
}

.volunteer-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #56606a;
}

.volunteer-check input {
    width: 18px;
    height: 18px;
    accent-color: #00d4aa;
}

.volunteer-submit {
    min-height: 50px;
    border: 0;
    border-radius: 28px;
    background: #777;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.volunteer-submit:hover {
    background: #00c29f;
    transform: translateY(-1px);
}

.form-feedback {
    display: none;
    margin: 1rem 0 0 !important;
    color: #00a985 !important;
    font-weight: 600;
}

.form-feedback.is-visible {
    display: block;
}

@media (max-width: 1024px) {
    .volunteer-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .volunteer-card {
        padding: 1.5rem;
    }
}


/* ===== Dark mode da página de doação ===== */
body.dark-mode { background-color: #0d0d0f; }
body.dark-mode .donation-header { background: #0d0d0f; border-bottom-color: #2a2a2e; }
body.dark-mode .back-link { color: #c9c9cf; }
body.dark-mode .donation-page-main { background: #0d0d0f; }
body.dark-mode .donation-left,
body.dark-mode .donation-panel,
body.dark-mode .volunteer-card {
    background: #161618;
    border-color: #2a2a2e;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
body.dark-mode .candidate-header-info h1,
body.dark-mode .total-amount,
body.dark-mode .volunteer-card h2,
body.dark-mode .progress-percentage { color: #ffffff; }
body.dark-mode .candidate-description,
body.dark-mode .candidate-description p,
body.dark-mode .supporters-count,
body.dark-mode .panel-subtitle,
body.dark-mode .progress-goal,
body.dark-mode .volunteer-card > p,
body.dark-mode .custom-amount-section label { color: #b8b8be; }
body.dark-mode .candidate-description { border-top-color: #2a2a2e; }
body.dark-mode .supporters-count svg { color: #b8b8be; }
body.dark-mode .progress-bar { background: #2a2a2e; }
body.dark-mode .amount-btn-grid {
    background: #1c1c1f;
    border-color: #2f2f34;
    color: #e6e6e6;
}
body.dark-mode .custom-input,
body.dark-mode .form-field input {
    background: #1c1c1f;
    border-color: #2f2f34;
    color: #ffffff;
}
body.dark-mode .form-field input::placeholder { color: #7a7a80; }
body.dark-mode .field-icon { color: #9a9aa0; }
body.dark-mode .volunteer-check { color: #b8b8be; }
body.dark-mode .social-icon { border-color: #2f2f34; color: #c9c9cf; }

/* Ajuste dark: selo AO VIVO legível + botão Doar visível em painel escuro */
body.dark-mode .live-badge { color: #f5f5f5; }
body.dark-mode .btn-donate-primary {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.5);
}
