/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00c853;
    --primary-dark: #00a043;
    --secondary-color: #ff5252;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #00c853 0%, #00a043 100%);
    color: white;
    padding: 40px 0 60px;
    text-align: center;
}

.hero-banner {
    margin-bottom: 30px;
}

.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Story Section */
.story {
    background: var(--bg-white);
    padding: 60px 0;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.story-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 40px 0 20px;
    text-align: center;
}

.story-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.impact-list {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.impact-list li {
    font-size: 18px;
    padding: 12px 0;
    color: var(--text-dark);
}

.cta-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 30px 0;
}

.share-text {
    font-size: 18px;
    color: var(--secondary-color);
    text-align: center;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 50px 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Progress Section */
.progress-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.progress-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hearts-icon {
    margin-bottom: 20px;
}

.hearts-img {
    max-width: 150px;
    height: auto;
}

.progress-card h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.meta {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.supporters {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-header {
    text-align: center;
    padding: 40px 40px 20px;
}

.modal-logo {
    font-size: 48px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-body {
    padding: 20px 40px 40px;
}

/* Valores Grid */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.valor-btn {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.valor-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 200, 83, 0.05);
    transform: translateY(-2px);
}

.valor-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Custom Valor */
.custom-valor {
    margin-bottom: 30px;
}

.custom-valor label {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.custom-valor input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.custom-valor input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-continuar {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continuar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-continuar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Checkout Modal */
.checkout-content {
    max-width: 500px;
}

.checkout-header {
    text-align: center;
    padding: 40px 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.checkout-logo {
    font-size: 48px;
    margin-bottom: 15px;
}

.checkout-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

.checkout-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.checkout-body {
    padding: 30px 40px 40px;
}

.valor-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 20px;
}

.valor-total span:first-child {
    font-size: 16px;
    color: var(--text-light);
}

.valor-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.checkout-instrucoes {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 14px;
}

/* QR Code Container */
.qrcode-container {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-container canvas,
.qrcode-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: var(--text-light);
    font-size: 14px;
}

/* Divider */
.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Pix Code */
.pix-code-container {
    margin-bottom: 20px;
}

.pix-code-input {
    width: 100%;
    padding: 15px;
    font-size: 12px;
    font-family: monospace;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
}

.btn-copy {
    width: 100%;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary-color);
    color: white;
}

.copy-icon {
    font-size: 20px;
}

/* Copy Feedback */
.copy-feedback {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-img {
        height: 220px;
    }

    .story-content h2 {
        font-size: 26px;
    }

    .story-content p {
        font-size: 16px;
    }

    .amount {
        font-size: 36px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-header,
    .modal-body,
    .checkout-body {
        padding: 30px 20px;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .valor-amount {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .btn-primary {
        padding: 15px 40px;
        font-size: 18px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .checkout-header h2 {
        font-size: 20px;
    }
}
