/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Open+Sans:wght@400;600&display=swap');

:root {
    --cor-titulo: #d4a373;
    --cor-fundo: #fefcf5;
    --cor-botao: #25D366;
    --cor-botao-hover: #1ebc57;
    --cor-btn-form: #c08e5d;
    --cor-btn-form-hover: #a3784e;
    --cor-texto: #444;
    --sombra-suave: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- RESET & GERAL --- */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--cor-fundo);
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--cor-texto);
}

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

/* --- TIPOGRAFIA --- */
h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--cor-titulo);
    margin: 0;
    line-height: 1.1;
}

h2.section-title {
    color: var(--cor-titulo);
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    margin-top: 50px;
    margin-bottom: 30px;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-30 { margin-bottom: 30px; }
.color-gray { color: #666; }

/* --- HEADER --- */
header {
    padding: 60px 20px 40px;
    background: white;
    box-shadow: var(--sombra-suave);
    margin-bottom: 40px;
}

p.intro {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

/* --- CONTADORES --- */
.contadores-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contador-box {
    background-color: var(--cor-fundo);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px 25px;
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contador-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.contador-tempo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--cor-titulo);
}

/* --- LISTA DE PRESENTES --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.card:hover { transform: translateY(-5px); }

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.card-cotas {
    font-size: 0.85rem;
    background-color: #f9f9f9;
    color: #777;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    align-self: center;
    border: 1px solid #eee;
}

.card-price {
    font-size: 1.2rem;
    color: var(--cor-titulo);
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- BOTÕES --- */
.btn-zap, .btn-post, .btn-copiar {
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

.btn-zap {
    width: 100%;
    padding: 12px;
    background-color: var(--cor-botao);
    color: white;
    border-radius: 50px;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
}
.btn-zap:hover { background-color: var(--cor-botao-hover); }

.btn-post {
    width: 100%;
    padding: 12px;
    background-color: var(--cor-btn-form);
    color: white;
    border-radius: 5px;
    font-size: 1rem;
}
.btn-post:hover { background-color: var(--cor-btn-form-hover); }

/* --- FORMULÁRIOS --- */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    margin-bottom: 50px;
    border: 1px solid #eee;
}

.form-rsvp-border { border-left: 5px solid var(--cor-titulo); }

.form-box {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
}

/* --- RSVP --- */
.rsvp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-group {
    display: flex;
    gap: 5%;
    margin-bottom: 15px;
    align-items: center;
}

.radio-group label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- MURAL --- */
.mural-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.recado-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.recado-item strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.recado-item span.data {
    font-size: 0.8rem;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

/* --- FOOTER & PIX --- */
.pix-section {
    padding: 40px 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.pix-box {
    background: #f4f4f4;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    border: 2px dashed #ccc;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 15px 0;
    word-break: break-all;
}

/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.qr-canvas {
    margin: 20px 0;
    border: 10px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.pix-code-box {
    background: #f4f4f4;
    padding: 10px;
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px dashed #ccc;
    cursor: pointer;
}

.btn-copiar {
    background: #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.loading-msg {
    text-align: center;
    color: #999;
    margin: 20px 0;
    font-style: italic;
}

/* RESPONSIVO */
@media (max-width: 600px) {
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
    }
}