/* Estilos Gerais */
:root {
    --primary-color: #d4a373;
    --secondary-color: #faedcd;
    --accent-color: #ccd5ae;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #333;
    --light-bg: #fefae0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

#app {
    position: relative;
    min-height: 100vh;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #c08c5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Tela de Carregamento */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(212, 163, 115, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

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

/* Seções */
.section {
    display: none;
    min-height: 100vh;
    padding: 2rem 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .date {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero .verse {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero .verse-ref {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.countdown div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Seção de Cerimônia */
.ceremony-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.ceremony-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: var(--transition);
}

.ceremony-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.ceremony-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.back-button {
    text-align: center;
    margin-top: 2rem;
}

/* Seção de Presentes */
.gift-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gift-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.gift-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.gift-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.gift-info {
    padding: 1.5rem;
}

.gift-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gift-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.gift-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.gift-button {
    width: 100%;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    overflow-y: auto;
    padding: 2rem 0;
}

.modal-content {
    background-color: white;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.gift-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-pix, .btn-card {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    flex: 1;
}

.btn-pix:hover, .btn-card:hover {
    background-color: #c89b7b;
}

.pix-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.pix-key {
    display: flex;
    width: 100%;
    margin: 10px 0;
}

.pix-key input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#copy-pix-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.copy-message {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

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

#gift-details {
    margin-bottom: 2rem;
    text-align: center;
}

#gift-details img {
    max-width: 200px;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    padding: 0.75rem 1.25rem;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.payment-method.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.payment-method-content {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.payment-method-content.active {
    display: block;
}

.pix-key {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
}

.copy-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: var(--secondary-color);
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.qr-code-placeholder img {
    max-width: 100%;
    max-height: 100%;
}

.small-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

.credit-card-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background-color: #2ecc71;
    margin: 1rem 0;
}

.credit-card-btn:hover {
    background-color: #27ae60;
}

.hidden {
    display: none;
}

/* Modal de Confirmação */
.confirmation-message {
    text-align: center;
}

.confirmation-message i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--dark-bg);
    color: var(--light-text);
    margin-top: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .date {
        font-size: 1.2rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown span:first-child {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
    }
    
    .ceremony-details {
        flex-direction: column;
        align-items: center;
    }
    
    .gift-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 0 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}