/**
 * TattooVistaTry v2.0 — Estilos
 * Arquivo: assets/tvt-styles.css
 * Versão:  2.0.0
 * Inclui: Modal estilo Google, botão gold 3D pulsante, responsividade
 */

/* ── Variáveis CSS para Temas ── */
:root {
    --tvt-primary-color: #00aaff;
    --tvt-secondary-color: #a855f7;
    --tvt-gold-color: #ffd700;
    --tvt-gold-dark: #daa520;
    --tvt-bg-dark: #111;
    --tvt-border-color: #333;
    --tvt-text-primary: #fff;
    --tvt-text-secondary: #888;
}

/* ── Overlay de Captura de Lead ── */
.tvt-lead-overlay {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ── Modal Base ── */
.tvt-modal {
    background: var(--tvt-bg-dark);
    border: 1px solid var(--tvt-primary-color);
    border-radius: 15px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: var(--tvt-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 8px 32px rgba(0, 170, 255, 0.2);
}

.tvt-modal h2 {
    color: var(--tvt-primary-color);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.tvt-modal p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--tvt-text-secondary);
}

/* ── Modal de Captura de Lead (Estilo Google) ── */
.tvt-modal--lead {
    border-color: var(--tvt-primary-color);
    max-width: 420px;
}

.tvt-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tvt-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--tvt-text-primary);
    margin: 0 0 10px 0;
}

.tvt-modal-subtitle {
    font-size: 15px;
    color: var(--tvt-text-secondary);
    margin: 0 0 20px 0;
}

/* ── Google Sign-In Container ── */
.tvt-google-signin-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
}

.tvt-google-signin-container .g_id_signin {
    width: 100% !important;
}

/* ── Divider ── */
.tvt-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    color: var(--tvt-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.tvt-divider::before,
.tvt-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tvt-border-color);
}

/* ── Email Form ── */
.tvt-email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Input de E-mail ── */
.tvt-email-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--tvt-border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--tvt-text-primary);
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tvt-email-input::placeholder {
    color: var(--tvt-text-secondary);
}

.tvt-email-input:focus {
    outline: none;
    border-color: var(--tvt-primary-color);
    background: rgba(0, 170, 255, 0.05);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
}

/* ── Mensagem de Erro ── */
.tvt-error-msg {
    color: #ff4444;
    font-size: 13px;
    margin: 0;
    padding: 8px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 4px;
}

/* ── Botão Primário ── */
.tvt-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tvt-btn--primary {
    background: var(--tvt-text-primary);
    color: var(--tvt-bg-dark);
}

.tvt-btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.tvt-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Privacy Notice ── */
.tvt-privacy-notice {
    font-size: 12px;
    color: var(--tvt-text-secondary);
    margin: 10px 0 0 0;
    line-height: 1.5;
}

.tvt-privacy-notice a {
    color: var(--tvt-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tvt-privacy-notice a:hover {
    color: var(--tvt-secondary-color);
    text-decoration: underline;
}

/* ── Modal Final com Imagem de Fundo ── */
.tvt-final-modal-overlay {
    display: none;
    position: fixed;
    z-index: 99998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.tvt-final-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.tvt-final-modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tvt-final-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tvt-final-modal-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    text-align: center;
    color: var(--tvt-text-primary);
}

.tvt-final-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.tvt-final-subtitle {
    font-size: 16px;
    margin: 0 0 25px 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ── Botão Gold 3D Pulsante ── */
.tvt-btn--gold-pulse {
    background: linear-gradient(135deg, var(--tvt-gold-color), var(--tvt-gold-dark));
    color: #000;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 
        0 8px 0 rgba(218, 165, 32, 0.4),
        0 12px 20px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
    display: inline-block;
    width: auto;
    margin: 0 auto;
    animation: goldPulse 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tvt-btn--gold-pulse:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 0 rgba(218, 165, 32, 0.4),
        0 16px 30px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 215, 0, 0.6);
}

.tvt-btn--gold-pulse:active {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 0 rgba(218, 165, 32, 0.4),
        0 8px 15px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

@keyframes goldPulse {
    0%, 100% {
        box-shadow: 
            0 8px 0 rgba(218, 165, 32, 0.4),
            0 12px 20px rgba(0, 0, 0, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        box-shadow: 
            0 8px 0 rgba(218, 165, 32, 0.4),
            0 12px 20px rgba(0, 0, 0, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            0 0 30px rgba(255, 215, 0, 0.8);
    }
}

/* ── Modal de Expiração ── */
.tvt-modal--expire {
    border-color: #ff00ff;
}

.tvt-modal--expire h2 {
    color: #ff00ff;
}

.tvt-btn--expire {
    background: linear-gradient(135deg, #ff00ff, #a855f7);
    margin-top: 15px;
}

.tvt-btn--expire:hover {
    opacity: 0.9;
}

/* ── Overlay de Expiração ── */
.tvt-expire-overlay {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
}

.tvt-expire-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

/* ── Responsividade ── */
@media (max-width: 768px) {
    .tvt-modal {
        padding: 30px 20px;
        max-width: 90%;
    }

    .tvt-modal-title {
        font-size: 22px;
    }

    .tvt-modal-subtitle {
        font-size: 14px;
    }

    .tvt-final-modal {
        height: 300px;
    }

    .tvt-final-modal-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .tvt-final-title {
        font-size: 24px;
    }

    .tvt-final-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .tvt-btn--gold-pulse {
        padding: 14px 24px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tvt-modal {
        padding: 25px 15px;
    }

    .tvt-modal-title {
        font-size: 20px;
    }

    .tvt-modal-subtitle {
        font-size: 13px;
    }

    .tvt-divider {
        font-size: 12px;
        margin: 12px 0;
    }

    .tvt-email-input,
    .tvt-btn {
        font-size: 14px;
        padding: 12px 14px;
    }

    .tvt-final-modal {
        height: 250px;
    }

    .tvt-final-title {
        font-size: 20px;
    }

    .tvt-final-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .tvt-btn--gold-pulse {
        padding: 12px 20px;
        font-size: 12px;
    }
}

/* ── Modo Escuro Automático ── */
@media (prefers-color-scheme: dark) {
    :root {
        --tvt-bg-dark: #0a0a0a;
        --tvt-border-color: #222;
    }
}

/* ── Modo Claro Automático ── */
@media (prefers-color-scheme: light) {
    :root {
        --tvt-bg-dark: #f5f5f5;
        --tvt-text-primary: #000;
        --tvt-text-secondary: #666;
        --tvt-border-color: #ddd;
    }

    .tvt-modal {
        border-color: var(--tvt-primary-color);
        box-shadow: 0 8px 32px rgba(0, 170, 255, 0.1);
    }

    .tvt-email-input {
        background: rgba(0, 0, 0, 0.02);
    }

    .tvt-email-input:focus {
        background: rgba(0, 170, 255, 0.02);
    }
}
