/**
 * Targettly AI Product Page — Purple/violet overrides
 * Most unique CSS: purple glow effects, engine marquee animation.
 *
 * @since 2.0.0
 */

.ez-prod-targettly {
    --product-primary: #4c1d95;
    --product-accent: #8b5cf6;
}

/* Button overrides */
.ez-prod-targettly .ez-btn--primary {
    background: #8b5cf6;
}

.ez-prod-targettly .ez-btn--primary:hover {
    background: #7c3aed;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* Hero purple glow */
.ez-prod-targettly .ez-prod-hero__shape {
    background: #8b5cf6;
}

/* AI Engines Marquee */
.ez-targettly-engines {
    overflow: hidden;
    padding: 1rem 0;
}

.ez-targettly-engines__track {
    display: flex;
    gap: 2rem;
    animation: ez-marquee 25s linear infinite;
    width: max-content;
}

.ez-targettly-engines__item {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--surface, #fff);
    border: 1px solid var(--wp--preset--color--border, #e2e8f0);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4c1d95;
    white-space: nowrap;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ez-targettly-engines__item:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

@keyframes ez-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

[dir="rtl"] .ez-targettly-engines__track {
    animation-direction: reverse;
}

/* Content Templates */
.ez-targettly-templates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ez-targettly-templates__group {
    background: var(--wp--preset--color--surface, #fff);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ez-targettly-templates__group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #4c1d95;
    margin: 0 0 1rem;
}

.ez-targettly-templates__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ez-targettly-templates__chip {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.08);
    color: #4c1d95;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Feature card purple tint */
.ez-prod-targettly .ez-prod-feature:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
    .ez-targettly-templates {
        grid-template-columns: 1fr;
    }
}
