/* 
 * Folha de Estilo Pública - Landing Page / Linktree
 * Identidade: Monochrome Luxury (Dojo Aesthetic)
 * Idioma: Português Brasileiro (pt-BR)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --fundo-dark: linear-gradient(135deg, #050806 0%, #010201 100%);
    --fundo-light: linear-gradient(135deg, #f4fcf6 0%, #fafdfa 100%);
    
    --card-dark: rgba(15, 20, 16, 0.7);
    --card-light: rgba(255, 255, 255, 0.8);
    
    --borda-dark: rgba(255, 255, 255, 0.08);
    --borda-light: rgba(16, 185, 129, 0.08);
    
    --texto-primario-dark: #ffffff;
    --texto-primario-light: #111111;
    
    --texto-segundario-dark: #a7f3d0;
    --texto-segundario-light: #047857;
    
    --glow-dark: rgba(16, 185, 129, 0.15);
    --glow-light: rgba(16, 185, 129, 0.05);

    --botao-fundo-dark: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --botao-texto-dark: #ffffff;
    --botao-fundo-light: linear-gradient(135deg, #059669 0%, #047857 100%);
    --botao-texto-light: #ffffff;
}

/* Reset básico e tipografia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    isolation: isolate;
}

/* Base HTML background based on theme */
html[data-theme="dark"] {
    background: var(--fundo-dark);
    background-attachment: fixed;
    transition: background 0.4s ease;
}

html[data-theme="light"] {
    background: var(--fundo-light);
    background-attachment: fixed;
    transition: background 0.4s ease;
}

/* Ambient Background Orbs (Hostinger Horizons style) */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    background: transparent;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    transition: opacity 0.5s ease, background 0.5s ease;
}

/* Animations for organic moving effect */
@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, 80px) scale(1.25); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1.15); }
    50% { transform: translate(-100px, -60px) scale(0.85); }
    100% { transform: translate(0, 0) scale(1.15); }
}

@keyframes floatGlow3 {
    0% { transform: translate(0, 0) scale(0.9); }
    50% { transform: translate(80px, -110px) scale(1.1); }
    100% { transform: translate(0, 0) scale(0.9); }
}

body[data-theme="dark"] .glow-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, rgba(16, 185, 129, 0.15) 45%, transparent 70%);
    top: -150px;
    left: -100px;
    animation: floatGlow1 22s infinite ease-in-out;
}

body[data-theme="dark"] .glow-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0.08) 45%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: floatGlow2 28s infinite ease-in-out;
}

body[data-theme="dark"] .glow-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.28) 0%, rgba(5, 150, 105, 0.08) 45%, transparent 70%);
    top: 30%;
    left: 20%;
    animation: floatGlow3 25s infinite ease-in-out;
}

body[data-theme="light"] .glow-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: floatGlow1 22s infinite ease-in-out;
}

body[data-theme="light"] .glow-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.03) 50%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: floatGlow2 28s infinite ease-in-out;
}

body[data-theme="light"] .glow-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.18) 0%, rgba(5, 150, 105, 0.03) 50%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: floatGlow3 25s infinite ease-in-out;
}

/* Temas base */
body[data-theme="dark"] {
    background: transparent;
    color: var(--texto-primario-dark);
}

body[data-theme="light"] {
    background: transparent;
    color: var(--texto-primario-light);
}

/* Container de Layout centralizado (Fino/Mobile-friendly) */
.linktree-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header */
.perfil-header {
    text-align: center;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.perfil-logo-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 15px;
}

.perfil-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #d4af37, #059669);
    z-index: -1;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.perfil-logo-wrapper:hover::before {
    transform: rotate(180deg);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.perfil-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    background: #000;
}

body[data-theme="dark"] .perfil-logo {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .perfil-logo {
    border: 2px solid rgba(16, 185, 129, 0.1);
}

.perfil-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #10b981, #d4af37);
    color: #ffffff;
}

body[data-theme="dark"] .perfil-placeholder {
    border: none;
}

body[data-theme="light"] .perfil-placeholder {
    border: none;
}

.perfil-nome {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

body[data-theme="light"] .perfil-nome {
    background: linear-gradient(135deg, #111111 30%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.perfil-contatos {
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

body[data-theme="dark"] .perfil-contatos {
    color: var(--texto-segundario-dark);
}

body[data-theme="light"] .perfil-contatos {
    color: var(--texto-segundario-light);
}

.contato-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.contato-item svg {
    width: 14px;
    height: 14px;
}

/* Links (Lista de Botões) */
.links-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-opcao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 26px;
    text-decoration: none;
    border-radius: 16px; /* Cantos levemente suavizados para visual moderno e luxuoso */
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease,
                background 0.4s ease,
                color 0.4s ease;
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Pseudo-elemento para o gradiente de borda premium no hover */
.link-opcao::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, #10b981, #d4af37, #059669);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
    z-index: 1;
}

.link-opcao:hover::before {
    opacity: 1;
}

body[data-theme="dark"] .link-opcao {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--texto-primario-dark);
}

body[data-theme="light"] .link-opcao {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.08);
    color: var(--texto-primario-light);
}

/* Hover dos botões de link */
.link-opcao:hover {
    transform: translateY(-4px) scale(1.01);
}

body[data-theme="dark"] .link-opcao:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2), 0 0 15px rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

body[data-theme="light"] .link-opcao:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.12);
    color: #047857;
}

.link-opcao .link-titulo-grupo svg {
    transition: color 0.4s ease, transform 0.4s ease;
}

body[data-theme="dark"] .link-opcao:hover .link-titulo-grupo svg {
    color: #a7f3d0;
}

body[data-theme="light"] .link-opcao:hover .link-titulo-grupo svg {
    color: #10b981;
}

/* Clique (Active) */
.link-opcao:active {
    transform: translateY(-1px) scale(0.99);
}

.link-titulo-grupo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Tamanho do ícone principal do link */
.link-titulo-grupo svg {
    width: 22px;
    height: 22px;
    opacity: 0.95;
}

/* Ícone de link externo (na direita) */
.link-opcao > svg:last-child {
    width: 15px;
    height: 15px;
    opacity: 0.5;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.link-opcao:hover > svg:last-child {
    transform: translate(3px, -3px);
    opacity: 0.9;
}

/* Animação Staggered (Entrada em cascata) */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-opcao:nth-child(1) { animation-delay: 0.05s; }
.link-opcao:nth-child(2) { animation-delay: 0.12s; }
.link-opcao:nth-child(3) { animation-delay: 0.19s; }
.link-opcao:nth-child(4) { animation-delay: 0.26s; }
.link-opcao:nth-child(5) { animation-delay: 0.33s; }
.link-opcao:nth-child(6) { animation-delay: 0.40s; }
.link-opcao:nth-child(7) { animation-delay: 0.47s; }
.link-opcao:nth-child(8) { animation-delay: 0.54s; }
.link-opcao:nth-child(9) { animation-delay: 0.61s; }
.link-opcao:nth-child(10) { animation-delay: 0.68s; }

/* Card do Lead Capture */
.lead-card {
    width: 100%;
    padding: 30px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .lead-card {
    background: var(--card-dark);
    border: 1px solid var(--borda-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-theme="light"] .lead-card {
    background: var(--card-light);
    border: 1px solid var(--borda-light);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lead-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
}

.lead-subtitulo {
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 25px;
}

body[data-theme="dark"] .lead-subtitulo {
    color: var(--texto-segundario-dark);
}

body[data-theme="light"] .lead-subtitulo {
    color: var(--texto-segundario-light);
}

.form-grupo {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

body[data-theme="dark"] .form-label {
    color: var(--texto-segundario-dark);
}

body[data-theme="light"] .form-label {
    color: var(--texto-segundario-light);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

body[data-theme="dark"] .form-input {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body[data-theme="light"] .form-input {
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #111111;
}

body[data-theme="dark"] .form-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

body[data-theme="light"] .form-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

textarea.form-input {
    resize: none;
    min-height: 90px;
}

/* Botão de Envio Premium */
.btn-enviar-lead {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.4s ease;
}

body[data-theme="dark"] .btn-enviar-lead {
    background: var(--botao-fundo-dark);
    color: var(--botao-texto-dark);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

body[data-theme="light"] .btn-enviar-lead {
    background: var(--botao-fundo-light);
    color: var(--botao-texto-light);
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.25);
}

.btn-enviar-lead:hover {
    transform: translateY(-2px) scale(1.02);
}

body[data-theme="dark"] .btn-enviar-lead:hover {
    background: linear-gradient(135deg, #059669 0%, #d4af37 100%);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

body[data-theme="light"] .btn-enviar-lead:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.btn-enviar-lead:active {
    transform: translateY(1px) scale(0.98);
}

.btn-enviar-lead:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Área de feedback do formulário */
.form-feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-feedback.sucesso {
    display: block;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid #27ae60;
    color: #2ecc71;
}

.form-feedback.erro {
    display: block;
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid #c0392b;
    color: #e74c3c;
}

/* Toggle de Tema */
.theme-toggle-container {
    margin-top: 40px;
}

.btn-theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body[data-theme="dark"] .btn-theme-toggle {
    color: #a7f3d0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .btn-theme-toggle {
    color: #047857;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.btn-theme-toggle:hover {
    transform: scale(1.1);
}

.btn-theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Rodapé */
.linktree-footer {
    margin-top: auto;
    padding-top: 50px;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 600px) {
    .linktree-container {
        padding: 25px 15px;
    }
    
    .perfil-nome {
        font-size: 1.7rem;
    }
    
    .link-opcao {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .lead-card {
        padding: 20px;
    }
}
