/* ============================================================
   ESTRATÉGIA TRAFIC — CSS do Método EvyTrafic (Redesign v2)
   ============================================================ */

/* ---- Hero Header ---- */
.evy-hero-header {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 48px 40px 42px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(59,130,246,0.05) 50%, rgba(236,72,153,0.06) 100%);
    border: 1px solid rgba(124,58,237,0.12);
}

/* Animated grid background */
.evy-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: evyGridMove 20s linear infinite;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
@keyframes evyGridMove {
    from { transform: translate(0, 0); }
    to   { transform: translate(40px, 40px); }
}

/* Floating gradient orbs */
.evy-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: evyFloat 8s ease-in-out infinite;
    pointer-events: none;
}
.evy-orb-1 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(124,58,237,0.35), transparent);
    top: -80px; right: -50px;
    animation-duration: 7s;
}
.evy-orb-2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.3), transparent);
    bottom: -60px; left: 10%;
    animation-duration: 9s;
    animation-delay: -3s;
}
.evy-orb-3 {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(236,72,153,0.25), transparent);
    top: 20%; left: 60%;
    animation-duration: 11s;
    animation-delay: -5s;
}
@keyframes evyFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(15px, -20px) scale(1.05); }
    66%      { transform: translate(-10px, 15px) scale(0.95); }
}

/* Hero content */
.evy-hero-content {
    position: relative;
    z-index: 2;
}
.evy-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 99px;
    padding: 5px 18px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-300, #a78bfa);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}
.evy-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 10px #7c3aed, 0 0 20px rgba(124,58,237,0.4);
    animation: evyPulse 2s ease-in-out infinite;
}
@keyframes evyPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #7c3aed, 0 0 20px rgba(124,58,237,0.4); }
    50%      { opacity: 0.6; box-shadow: 0 0 5px #7c3aed, 0 0 10px rgba(124,58,237,0.2); }
}

.evy-hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.evy-gradient-text {
    background: linear-gradient(135deg, #7c3aed, #ec4899, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.evy-hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 620px;
}
.evy-hero-desc strong {
    color: var(--text-primary);
}

/* Stat pills */
.evy-hero-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.evy-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.evy-stat-pill:hover {
    background: rgba(124,58,237,0.08);
    border-color: rgba(124,58,237,0.2);
    color: var(--primary-300);
    transform: translateY(-1px);
}
.evy-stat-icon {
    font-size: 14px;
}

/* ---- Full-width container (sem caixa) ---- */
.evy-fullwidth-container {
    padding: 0 4px;
    max-height: none;
    overflow-y: visible;
}

/* Badge de etapa */
.evy-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 99px;
    padding: 3px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-300, #a78bfa);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Conteúdo da etapa */
.evy-step-content {
    animation: evyFadeIn 0.35s ease;
}

@keyframes evyFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Grupo de campo */
.evy-field-group {
    margin-bottom: 20px;
}

/* Label */
.evy-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Input / Textarea */
.evy-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: .9rem;
    font-family: var(--font-family, inherit);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.evy-input:focus {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: rgba(124, 58, 237, 0.03);
}

.evy-input::placeholder {
    color: var(--text-tertiary);
}

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

/* Chips de seleção */
.evy-chip {
    padding: 9px 20px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-family, inherit);
}

.evy-chip:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.evy-chip-active {
    border-color: #7c3aed !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.08)) !important;
    color: #a78bfa !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* Botão IA */
.evy-btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family, inherit);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.evy-btn-ai::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.evy-btn-ai:hover::before {
    transform: translateX(100%);
}

.evy-btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55), 0 0 60px rgba(124, 58, 237, 0.15);
}

.evy-btn-ai:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* Animação de spin para loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Scroll suave no container */
#evy-main-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
}

#evy-main-container::-webkit-scrollbar {
    width: 5px;
}

#evy-main-container::-webkit-scrollbar-track {
    background: transparent;
}

#evy-main-container::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 99px;
}

/* ---- Light mode fixes ---- */
.light-mode .evy-hero-header {
    background: linear-gradient(135deg, rgba(124,58,237,0.05) 0%, rgba(59,130,246,0.03) 50%, rgba(236,72,153,0.04) 100%);
    border-color: rgba(124,58,237,0.1);
}
.light-mode .evy-grid-bg {
    background-image: 
        linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
}
.light-mode .evy-stat-pill {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
}
.light-mode .evy-input {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
}
.light-mode .evy-chip {
    border-color: rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.02);
    color: var(--text-secondary);
}

/* Responsividade */
@media (max-width: 768px) {
    .evy-hero-header {
        padding: 32px 20px 28px;
    }
    .evy-hero-title {
        font-size: 1.6rem;
    }
    .evy-fullwidth-container {
        padding: 0;
    }
}

@media (max-width: 640px) {
    .evy-chip {
        font-size: .8rem;
        padding: 7px 14px;
    }
    .evy-hero-stats {
        gap: 6px;
    }
    .evy-stat-pill {
        font-size: 11px;
        padding: 5px 10px;
    }
}
