/* ===========================================
   WPE List Enhancer - Frontend + Editor Styles
   =========================================== */

/* Base: Reset list styles when WPE style active */
[class*="wpe-list-style-"]:not(.wpe-list-style-default) {
    list-style: none;
    padding-left: 0;
}
[class*="wpe-list-style-"]:not(.wpe-list-style-default) > li {
    list-style: none;
}

/* ===========================================
   STYLE 1: Default - Clean spacing
   =========================================== */
.wpe-list-style-default {
    padding-left: 1.5em;
}
.wpe-list-style-default > li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* ===========================================
   STYLE 2: Minimal - Small dots, extra space
   =========================================== */
.wpe-list-style-minimal > li {
    position: relative;
    padding-left: 1.25em;
    margin-bottom: 0.75em;
    line-height: 1.8;
}
.wpe-list-style-minimal > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.35;
}

/* ===========================================
   STYLE 3: Bordered - Bottom border per item
   =========================================== */
.wpe-list-style-bordered > li {
    padding: 0.75em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    line-height: 1.6;
}
.wpe-list-style-bordered > li:last-child {
    border-bottom: none;
}

/* ===========================================
   STYLE 4: Card - Background & shadow
   =========================================== */
.wpe-list-style-card > li {
    padding: 1em 1.25em;
    margin-bottom: 0.5em;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    line-height: 1.6;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
.wpe-list-style-card > li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.01);
}

/* ===========================================
   STYLE 5: Highlight - Alternating stripes
   =========================================== */
.wpe-list-style-highlight > li {
    padding: 0.65em 1em;
    margin-bottom: 0;
    line-height: 1.6;
    border-radius: 4px;
}
.wpe-list-style-highlight > li:nth-child(odd) {
    background: rgba(0, 0, 0, 0.035);
}

/* ===========================================
   STYLE 6: Timeline - Vertical line + circles
   =========================================== */
.wpe-list-style-timeline {
    position: relative;
    padding-left: 2em;
}
.wpe-list-style-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1px;
}
.wpe-list-style-timeline > li {
    position: relative;
    padding-bottom: 1em;
    margin-bottom: 0;
    line-height: 1.6;
}
.wpe-list-style-timeline > li:last-child {
    padding-bottom: 0;
}
.wpe-list-style-timeline > li::before {
    content: '';
    position: absolute;
    left: -1.65em;
    top: 0.35em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid currentColor;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* ===========================================
   STYLE 7: Checkmark - Green check markers
   =========================================== */
.wpe-list-style-checkmark > li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.5em;
    line-height: 1.6;
}
.wpe-list-style-checkmark > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 1.1em;
    height: 1.1em;
    background-color: #22c55e;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ===========================================
   STYLE 8: Arrow - Right arrow markers
   =========================================== */
.wpe-list-style-arrow > li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.5em;
    line-height: 1.6;
}
.wpe-list-style-arrow > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    opacity: 0.65;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ===========================================
   STYLE 9: Gradient - Gradient circle markers
   =========================================== */
.wpe-list-style-gradient > li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.6em;
    line-height: 1.6;
}
.wpe-list-style-gradient > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ===========================================
   STYLE 10: Neon - Glowing accent markers
   =========================================== */
.wpe-list-style-neon > li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.6em;
    line-height: 1.6;
}
.wpe-list-style-neon > li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 6px #00f0ff, 0 0 14px rgba(0, 240, 255, 0.35);
}

/* ===========================================
   ICON LIST MODE - Custom SVG Icons
   =========================================== */
.wpe-list-icon-mode {
    list-style: none !important;
    padding-left: 0 !important;
}
.wpe-list-icon-mode > li {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    margin-bottom: 0.5em;
    list-style: none;
}
.wpe-list-icon-mode > li::before {
    display: none !important;
}
.wpe-list-icon-mode .wpe-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--wpe-icon-size, 20px);
    height: var(--wpe-icon-size, 20px);
    margin-top: 0.15em;
}
.wpe-list-icon-mode .wpe-list-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Stroke-based icons (Lucide) */
.wpe-list-icon-mode .wpe-list-icon svg {
    fill: none;
    stroke: var(--wpe-icon-color, currentColor);
}

/* Filled icons (Material, Dashicons) */
.wpe-list-icon-mode .wpe-list-icon.wpe-icon-filled svg {
    fill: var(--wpe-icon-color, currentColor);
    stroke: none;
}

/* Per-item color override */
.wpe-list-icon-mode > li[style*="--wpe-item-icon-color"] .wpe-list-icon svg {
    stroke: var(--wpe-item-icon-color);
}
.wpe-list-icon-mode > li[style*="--wpe-item-icon-color"] .wpe-list-icon.wpe-icon-filled svg {
    fill: var(--wpe-item-icon-color);
    stroke: none;
}

/* ===========================================
   Combined: Icon mode with style presets
   (structural styles still apply)
   =========================================== */
.wpe-list-icon-mode.wpe-list-style-bordered > li {
    padding: 0.75em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}
.wpe-list-icon-mode.wpe-list-style-bordered > li:last-child {
    border-bottom: none;
}
.wpe-list-icon-mode.wpe-list-style-card > li {
    padding: 1em 1.25em;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}
.wpe-list-icon-mode.wpe-list-style-highlight > li:nth-child(odd) {
    padding: 0.65em 1em;
    background: rgba(0, 0, 0, 0.035);
    border-radius: 4px;
}
.wpe-list-icon-mode.wpe-list-style-timeline {
    padding-left: 0 !important;
}

/* ===========================================
   Accessibility
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .wpe-list-style-card > li {
        transition: none;
    }
}
@media (prefers-contrast: high) {
    .wpe-list-style-neon > li::before {
        box-shadow: none;
        background: currentColor;
    }
    .wpe-list-style-gradient > li::before {
        background: currentColor;
    }
}
