/* Fontes - elegantes mas acolhedoras */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    /* Paleta verde oliva do convite */
    --verde-escuro: #4a5d3a;
    --verde-medio: #6b7f5a;
    --verde-claro: #8fa278;
    --verde-folha: #7a9666;
    --dourado: #b8a45c;
    --dourado-claro: #d4c78a;
    --creme: #faf8f3;
    --creme-escuro: #f0ece3;
    --texto: #3d3d3d;
    --texto-claro: #666;
    
    /* Cores dos presentes */
    --cor-preto: #1a1a1a;
    --cor-branco: #f5f5f5;
    --cor-inox: #c0c0c0;
    --cor-bambu: #d4a574;
}

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

body {
    font-family: 'Lora', Georgia, serif;
    background-color: var(--creme);
    color: var(--texto);
    line-height: 1.7;
    min-height: 100vh;
}

/* Container principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header / Navegação */
.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 25px 20px;
    background: linear-gradient(180deg, var(--creme) 0%, transparent 100%);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--verde-escuro);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover,
.nav a.active {
    background-color: var(--verde-escuro);
    color: var(--creme);
}

/* Título principal estilo convite */
.titulo-principal {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--verde-escuro);
    text-align: center;
    margin: 40px 0 20px;
    line-height: 1.2;
}

.titulo-principal span {
    display: block;
}

/* Decoração de folhas */
.decoracao-folhas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0 40px;
    color: var(--verde-medio);
}

.decoracao-folhas::before,
.decoracao-folhas::after {
    content: '🌿';
    font-size: 1.5rem;
    opacity: 0.8;
}

.decoracao-folhas .centro {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--verde-medio), transparent);
}

/* Card estilo convite */
.card-convite {
    background: white;
    border: 2px solid var(--creme-escuro);
    border-radius: 8px;
    padding: 50px 40px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.08);
    position: relative;
}

.card-convite::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--verde-claro);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0.4;
}

/* Informações do evento */
.info-evento {
    margin: 30px 0;
    text-align: left;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 15px 0;
    font-size: 1.05rem;
}

.info-item .icone {
    width: 24px;
    height: 24px;
    color: var(--verde-medio);
    flex-shrink: 0;
}

.info-item strong {
    color: var(--verde-escuro);
    min-width: 70px;
}

/* Banner de presentes */
.banner-presentes {
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-medio) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-presentes::before {
    content: '🌿';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

.banner-presentes::after {
    content: '🌿';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    font-size: 2rem;
    opacity: 0.3;
}

.banner-presentes h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.banner-presentes p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Mapa */
.mapa-container {
    max-width: 600px;
    margin: 20px auto 50px;
    text-align: center;
}

.mapa-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.15);
}

/* Paleta de cores dos presentes */
.paleta-cores {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.cor-item {
    text-align: center;
}

.cor-circulo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid var(--creme-escuro);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cor-circulo.preto { background-color: var(--cor-preto); }
.cor-circulo.branco { background-color: var(--cor-branco); }
.cor-circulo.inox { 
    background: linear-gradient(135deg, #e8e8e8, #a8a8a8, #d0d0d0); 
}
.cor-circulo.bambu { 
    background: linear-gradient(135deg, var(--cor-bambu), #c49660); 
}

.cor-nome {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--texto);
}

/* Lista de presentes */
.lista-presentes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.presente-item {
    background: white;
    padding: 18px 22px;
    border-radius: 8px;
    border-left: 4px solid var(--verde-claro);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.presente-item:hover {
    transform: translateX(5px);
    border-left-color: var(--verde-escuro);
    box-shadow: 0 4px 15px rgba(74, 93, 58, 0.12);
}

.presente-item::before {
    content: '🌿';
    font-size: 1rem;
    opacity: 0.7;
}

/* Presentes com sistema de reserva */
.presente-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    cursor: pointer;
}

.presente-item.disponivel:hover {
    background-color: var(--creme);
}

.presente-item.reservado {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-left-color: #ccc;
}

.presente-item.reservado:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.presente-item.reservado::before {
    content: '✓';
    color: var(--verde-medio);
}

.presente-item.surpresa {
    border-left-color: var(--dourado);
    background: linear-gradient(135deg, #fffef5 0%, #fff 100%);
}

.presente-item.surpresa::before {
    content: '';
}

.presente-item.surpresa:hover {
    border-left-color: var(--dourado);
    background: linear-gradient(135deg, #fffceb 0%, #fff 100%);
}

.presente-nome {
    font-weight: 500;
}

.presente-status {
    font-size: 0.85rem;
    color: var(--texto-claro);
    font-style: italic;
}

.presente-status.disponivel-tag {
    color: var(--verde-medio);
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-conteudo {
    background: white;
    padding: 35px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-conteudo h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--verde-escuro);
    margin-bottom: 10px;
}

.modal-conteudo p {
    color: var(--verde-medio);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-style: italic;
}

.fechar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--texto-claro);
    cursor: pointer;
    line-height: 1;
}

.fechar-modal:hover {
    color: var(--texto);
}

/* Formulário */
.formulario {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.08);
}

.campo {
    margin-bottom: 25px;
}

.campo label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--verde-escuro);
    margin-bottom: 8px;
}

.campo input,
.campo textarea,
.campo select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--creme-escuro);
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--creme);
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    outline: none;
    border-color: var(--verde-medio);
    background-color: white;
}

.campo textarea {
    min-height: 100px;
    resize: vertical;
}

/* Botões */
.btn {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    padding: 14px 35px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-principal {
    background: linear-gradient(135deg, var(--verde-escuro) 0%, var(--verde-medio) 100%);
    color: white;
}

.btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 93, 58, 0.3);
}

.btn-secundario {
    background: transparent;
    color: var(--verde-escuro);
    border: 2px solid var(--verde-escuro);
}

.btn-secundario:hover {
    background: var(--verde-escuro);
    color: white;
}

/* Mensagens flash */
.mensagem {
    padding: 15px 25px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.mensagem.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin */
.tabela-admin {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.08);
}

.tabela-admin th,
.tabela-admin td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--creme-escuro);
}

.tabela-admin th {
    background: var(--verde-escuro);
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

.tabela-admin tr:hover {
    background-color: var(--creme);
}

.contador {
    background: linear-gradient(135deg, var(--verde-escuro) 0%, var(--verde-medio) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.contador .numero {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
}

.contador .texto {
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-excluir {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    text-decoration: none;
}

.btn-excluir:hover {
    background: #c82333;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--texto-claro);
    font-size: 0.9rem;
}

.footer .coracao {
    color: var(--verde-medio);
}

/* Subtítulo */
.subtitulo {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: var(--texto-claro);
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
}

/* Texto casual/informal */
.texto-casual {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--texto);
}

/* Responsivo */
@media (max-width: 600px) {
    .titulo-principal {
        font-size: 2.8rem;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav a {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .card-convite {
        padding: 30px 20px;
    }
    
    .formulario {
        padding: 25px 20px;
    }
    
    .paleta-cores {
        gap: 15px;
    }
    
    .cor-circulo {
        width: 50px;
        height: 50px;
    }
    
    .lista-presentes {
        grid-template-columns: 1fr;
    }
    
    .tabela-admin {
        font-size: 0.9rem;
    }
    
    .tabela-admin th,
    .tabela-admin td {
        padding: 10px;
    }
}
