
/* ================================================================================================
   ============================= ESTILOS GERAIS E EFEITOS ==============================
   ================================================================================================ */
:root {
    --grad-1: #1e3c72;
    --grad-2: #2a5298;
    --text-color: #fff;
    --name-shadow-color: #000;
    --particle-color: rgba(255,255,255,0.7);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(45deg, var(--grad-1), var(--grad-2));
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
    overflow-x: hidden;
    transition: opacity 0.4s ease-in-out;
}
body.fade-out {
    opacity: 0;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.effect-canvas, #particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
#particles-container {
    z-index: 0;
}
.side-decorations {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
#side-decorations-left {
    left: 0;
}
#side-decorations-right {
    right: 0;
}
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100svh;
    padding: 20px;
    position: relative;
    z-index: 3;
}
#hero h1 {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
#displayName {
    font-weight: 900;
    font-size: clamp(3rem, 15vw, 6rem);
    line-height: 1.1;
    margin-top: 10px;
    background-size: 200% auto;
    color: #FFF;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 4s linear infinite, scaleIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: scale(0);
    text-shadow: 0 0 8px var(--name-shadow-color);
}
.custom-message {
    font-family: 'Lora', serif; /* Ou 'Merriweather', serif; */
    font-style: italic; /* Você pode manter o itálico se quiser */
    font-size: 1.2rem;
    margin-top: 15px;
    max-width: 90%;
    line-height: 1.5;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    animation: fadeIn 1.5s 0.5s both;
}
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    animation: bounce 2s infinite;
    transform: translateX(-50%);
}
.scroll-down a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
}
#creator {
    min-height: 100vh;
    background: rgba(0,0,0,0.2);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}
#creator h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}
.form-container {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    width: 100%;
    max-width: 500px;
}
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 300;
}
.theme-selector-wrapper {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
#currentThemeInput {
    flex-grow: 1;
}
#openThemeModalBtn {
    flex-shrink: 0;
}
#currentThemeInput {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}
#openThemeModalBtn {
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}
.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    color: var(--text-color);
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}
.input-group input::placeholder, .input-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}
#generateButton {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
#generateButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#toggleCustomMessage {
    color: var(--text-color);
    text-decoration: underline;
    cursor: pointer;
    display: block;
    text-align: center;
    margin-bottom: 20px;
}
#share-section {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
	display: none;
}
#share-section.visible {
	display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s;
}
#generatedUrl {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    margin-bottom: 15px;
}
.share-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.share-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.share-btn i {
    font-size: 1.2rem;
}
.copy-feedback {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #aaffaa;
    opacity: 0;
    transition: opacity 0.5s;
}
.hidden {
    display: none;
}
.whatsapp {
    background: #25D366;
}
.telegram {
    background: #0088cc;
}
.twitter {
    background: #000;
}
.copy {
    background: #777;
}
.controls-container {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.control-btn {
    position: relative;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: transform 0.2s, background 0.2s;
}
.control-btn:active {
    transform: scale(0.9);
}
.control-btn .fas.fa-star {
    color: #FFD700;
}
.control-btn .tooltip {
    position: absolute;
    top: 50%;
    right: 120%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
}
.control-btn .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0,0,0,0.8);
}
.control-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(5px);
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    background: rgba(22,34,42,0.95);
    border-radius: 15px;
    width: 95%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s;
    max-height: 90vh;
}
.modal-overlay.visible .modal-container {
    transform: scale(1);
}
.modal-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.modal-header h3, .modal-header .styled-select {
    width: 100%;
}
.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}
.modal-header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.modal-header-search input {
    flex-grow: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 1rem;
}
.modal-header-search i {
    color: #fff;
    font-size: 1rem;
}
.close-modal {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}
.close-modal:hover {
    transform: scale(1.1);
}
.modal-content {
    overflow-y: auto;
    padding: 15px;
}
.theme-category h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
    font-weight: 300;
}
.theme-category:first-child h3 {
    margin-top: 0;
}
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.theme-card {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-size: 0.9rem;
}
.theme-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: clip-path 0.8s cubic-bezier(0.86,0,0.07,1);
}
#intro-overlay.visible {
    display: flex;
}
#intro-overlay.curtain-closed {
    clip-path: inset(0% 0% 0% 0%);
}
#intro-overlay.curtain-open {
    clip-path: inset(50% 0% 50% 0%);
}
.intro-content {
    text-align: center;
    color: #fff;
}
.intro-emoji {
    font-size: clamp(8rem, 30vw, 12rem);
    animation: pulse 2s infinite ease-in-out;
    text-shadow: 0 5px 30px rgba(0,0,0,0.5);
}
.intro-pointer {
    font-size: 3rem;
    margin-top: 1rem;
    animation: bounce-vertical 1.5s infinite;
}
.intro-text {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes bounce-vertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes text-shimmer {
    to { background-position: -200% center; }
}
@keyframes scaleIn {
    to { transform: scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}
.particle {
    position: absolute;
    background-color: var(--particle-color);
    border-radius: 50%;
    opacity: 0;
}
.particle.rise {
    animation: rise 15s infinite linear;
}
.particle.fall {
    animation: snowfall 20s infinite linear;
}
@keyframes rise {
    0% { transform: translateY(100vh) scale(0); opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
@keyframes snowfall {
    0% { transform: translateY(-10vh) scale(0); opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh) scale(1); opacity: 0; }
}
.deco-item {
    position: absolute;
    opacity: 0.7;
    animation: fall-rotate 15s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.deco-item img {
    width: 100%;
    height: auto;
}
.deco-item.emoji {
    font-size: 2rem;
    background: transparent;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
@keyframes fall-rotate {
    from { transform: translateY(-150px) rotate(-30deg); }
    to { transform: translateY(100vh) rotate(30deg); }
}
.suggestion-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.suggestion-btn:hover {
    background: rgba(255,255,255,0.25);
}
.message-suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.message-suggestion-list li {
    padding: 15px;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-style: italic;
}
.message-suggestion-list li:hover {
    background: rgba(0,0,0,0.4);
}
.message-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}
.message-category-title:first-child {
    margin-top: 0;
}
.styled-select {
    width: 100%;
    padding: 10px 15px;
    margin-top: 10px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}
.styled-select option {
    color: #000;
    background-color: #fff;
}
.modal-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.modal-header h3 {
    flex-grow: 1;
}
.modal-header h3, .modal-header .styled-select {
    width: 100%;
}
.modal-header .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
}
.modal-header .close-modal:hover {
    transform: scale(1.1);
}
.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}
.modal-header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.modal-header-search input {
    flex-grow: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 1rem;
}
.modal-header-search i {
    color: #fff;
    font-size: 1rem;
}
.close-modal {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}
/* --- ESTILO PARA O MODAL FOOTER --- */
.modal-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: flex-end; /* Alinha o botão à direita */
}

/* --- ESTILO PARA O BOTÃO "Entendido" --- */
.notification-ok-btn {
    background-color: #2c5364; /* Cor de fundo */
    color: #ffffff; /* Cor do texto */
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notification-ok-btn:hover {
    background-color: #203A43; /* Escurece a cor no hover */
}

/* --- ESTILO PARA O RODAPÉ --- */
.site-footer {
    text-align: center;
    padding: 20px;

    color: rgba(255, 255, 255, 0.7); /* Cor do texto mais suave */
    font-size: 0.9rem;
}

/* --- ESTILO PARA O CONTADOR DE CARACTERES --- */
#charCounter {
    display: block;
    text-align: right; /* Alinha o texto à direita */
    font-size: 0.8rem; /* Tamanho da fonte menor */
    color: rgba(255, 255, 255, 0.7); /* Cor do texto mais suave */
    margin-top: 5px; /* Adiciona um pequeno espaço acima */
    font-weight: 300;
}

/* Opcional: Estilo para quando a contagem de caracteres está baixa (ex: 20 caracteres restantes) */
/* Isso serve para chamar a atenção do usuário de forma sutil */
#charCounter.warning {
    color: #FFD700; /* Cor amarela para indicar aviso */
}

/* Opcional: Estilo para quando a contagem chega a 0 */
#charCounter.error {
    color: #FF6B6B; /* Cor vermelha para indicar que o limite foi atingido */
    font-weight: 700;
}

.adsense-container {
    /* Define a largura do container. Use um valor fixo ou percentual. */
    width: 100%;
  
    height: 100px; /* Adapte para a altura do seu anúncio, por exemplo 100px */
    
    /* Centraliza o container horizontalmente */
    margin: 10px auto; 

    /* Adiciona um estilo visual para que o espaço seja claramente visível */
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    
    /* Centraliza o texto (ou o conteúdo de placeholder) */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Estilo do texto de placeholder (opcional) */
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.9rem;
}

/* --- ESTILO PARA A LINHA DIVISÓRIA --- */

#loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Fundo semi-transparente */
    display: flex; /* Centraliza o loader */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que fique acima de tudo */
}

.loader {
    border: 8px solid #f3f3f3; /* Cinza claro */
    border-top: 8px solid #3498db; /* Azul */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite; /* Animação de rotação */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width:768px){#hero h1{font-size:2.5rem}.custom-message{font-size:1.8rem;max-width:800px}#creator h2{font-size:3rem}.form-container{padding:40px}.share-buttons{grid-template-columns:1fr 1fr}.side-decorations{width:150px}.deco-item.emoji{font-size:40px}.theme-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.theme-card{font-size:1rem}}
