@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #ffe0ec, #ffd4f0, #fff0f8);
    font-family: 'Poppins', sans-serif;
    color: #444;
    padding: 20px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 700px;
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    margin-top: 40px;
    text-align: center;
}

/* Títulos */
h1, h2 {
    color: #ff4d9c;
    text-shadow: 0 0 10px rgba(255, 77, 156, 0.15);
    margin-bottom: 10px;
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

form input, form textarea {
    width: 100%;
    max-width: 550px;
    padding: 14px 16px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}

form input:focus, form textarea:focus {
    border-color: #ff8ac9;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.2);
}

/* Botão */
button {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
    margin-top: 5px;
}

button:hover {
    background: #ff479b;
    transform: scale(1.05);
}

/* Mural de recados */
.mural {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 900px;
}

/* Cartões individuais */
.cartao {
    background: #fffafc;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 0 12px rgba(255, 105, 180, 0.15);
    animation: aparecer 0.4s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cartao h3 {
    color: #ff479b;
    margin-bottom: 8px;
    font-size: 17px;
}

.cartao p {
    font-size: 15px;
    white-space: pre-wrap;
    line-height: 1.4;
}

.cartao span {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* Animação de entrada */
@keyframes aparecer {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}

/* Corações flutuando */
body::before, body::after {
    content: '💖 💕 💞 💓 💗 💘';
    position: fixed;
    top: -10%;
    left: 0;
    width: 100%;
    font-size: 2rem;
    animation: coracoes 15s linear infinite;
    opacity: 0.25;
    pointer-events: none;
}

@keyframes coracoes {
    from {transform: translateY(0);}
    to {transform: translateY(120vh);}
}

/* -------- Responsividade -------- */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 25px 20px;
    }

    form input, form textarea {
        max-width: 100%;
    }

    .mural {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        margin-top: 25px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    button {
        width: 100%;
        font-size: 15px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
    }

    .mural {
        grid-template-columns: 1fr;
    }

    form input, form textarea {
        font-size: 15px;
    }
}
