/* =============================================
   Petsure Text Path Widget
   Circular SVG text path with infinite rotation
   Uses theme CSS variables: petsure-primary / petsure-white
   ============================================= */

/* =============================================
   WRAPPER – centered with padding, background icon support, relative positioning
   ============================================= */
.petsure-text-path-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    padding: 20px;
    background-color: var(--petsure-primary);
    color: var(--petsure-white);
    border-radius: 50%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 70px auto;
}

/* =============================================
   SVG
   ============================================= */
.petsure-text-path-wrapper svg {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    overflow: visible;
    color: currentColor;
    fill: currentColor
}

.petsure-text-path-wrapper svg>path {
    fill: none;
    stroke: none;
    stroke-width: 1px;
}

/* =============================================
   INTERIOR – centered over the SVG
   Inherits size from Elementor control, falls back to theme or 70px
   ============================================= */
.petsure-text-path-interior {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.petsure-text-path-interior img {
    width: 100%;
    height: 100%;
    min-width: 40px;
    min-height: 40px;
    object-fit: contain;
    display: block;
}

.petsure-text-path-interior svg {
    width: 100%;
    height: 100%;
    min-width: 40px;
    min-height: 40px;
    display: block;
    fill: currentColor;
}

.petsure-text-path-interior svg path {
    fill: inherit;
}

.petsure-text-path-interior i {
    font-size: 70px;
    line-height: 1;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   TEXT – depends on color scheme
   ============================================= */
.petsure-text-path-wrapper text {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    fill: currentColor;
}

.petsure-text-path-wrapper textPath a {
    text-decoration: none;
    transition: fill 0.3s ease;
}

/* =============================================
   COLOR SCHEMES – controlled via prefix_class
   ============================================= */

/* Primary (default): primary bg, white text */
.petsure-text-path-wrapper {
    background-color: var(--petsure-primary);
}

/* Secondary: secondary bg, white text */
.petsure-text-path-wrapper.petsure-text-path-scheme-secondary {
    background-color: var(--petsure-secondary);
}

.petsure-text-path-wrapper.petsure-text-path-scheme-secondary text {
    color: var(--petsure-white);
}

/* Accent: accent bg, white text */
.petsure-text-path-wrapper.petsure-text-path-scheme-accent {
    background-color: var(--petsure-accent);
}

.petsure-text-path-wrapper.petsure-text-path-scheme-accent text {
    color: var(--petsure-white);
}

/* White: white bg, primary text */
.petsure-text-path-wrapper.petsure-text-path-scheme-white {
    background-color: var(--petsure-white);
    border: 2px solid var(--petsure-primary);
    color: var(--petsure-primary);
}

/* =============================================
   ROTATION – controlled via petsure-effects.css
   ============================================= */
.petsure-text-path-wrapper.petsure-rotate-infinite {
    animation: petsure-rotate var(--petsure-rotate-speed, 20s) linear infinite;
}

.petsure-text-path-wrapper.petsure-rotate-infinite:hover {
    animation-play-state: paused;
}

.petsure-text-path-wrapper.petsure-rotate-always:hover {
    animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
    .petsure-text-path-wrapper.petsure-rotate-infinite {
        animation: none;
    }
}