/* ============================================================
   GLE Content Engine™ — Complete Styles
   Single source of truth. Replaces all designer CSS snippets.
   Selector: #gle-steps-list
   ============================================================ */


/* ── Base item style ─────────────────────────────────────── */
#gle-steps-list.elementor-widget .elementor-icon-list-item,
#gle-steps-list.elementor-widget .elementor-icon-list-item a {
    padding: 15px;
    background: #ffffff09;
    border: 1px solid #ffffff12;
    border-radius: 10px;
}

#gle-steps-list b {
    color: #fff;
}

/* Lock icon wrapper to a fixed size so it never shifts between states */
#gle-steps-list .elementor-icon-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

#gle-steps-list .elementor-icon-list-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 18px;
}

#gle-steps-list .fa-check:before {
    padding: 5px;
    background: #043b53;
    border-radius: 50px;
    border: 1px solid #ffffff12;
}

/* Base transition on all items */
#gle-steps-list .elementor-icon-list-item {
    transition: background 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
    border-radius: 8px;
    padding: 6px 10px;
}


/* ── WAITING — dim, clearly inactive ────────────────────── */
#gle-steps-list .elementor-icon-list-item.gle-step-waiting {
    opacity: 0.35;
    filter: grayscale(0.4);
}
#gle-steps-list .elementor-icon-list-item.gle-step-waiting
    .elementor-icon-list-icon i {
    color: #555;
}


/* ── ACTIVE — blue glow + pulse ──────────────────────────── */
#gle-steps-list .elementor-icon-list-item.gle-step-active {
    opacity: 1;
    filter: none;
    background: rgba(14, 156, 229, 0.08);
    border: 2px solid rgba(14, 156, 229, 0.8);
    box-shadow:
        0 0 8px rgba(14, 156, 229, 0.5),
        0 0 20px rgba(14, 156, 229, 0.3),
        0 0 40px rgba(14, 156, 229, 0.15);
    animation: glePulse 2s ease-in-out infinite;
}
#gle-steps-list .elementor-icon-list-item.gle-step-active
    .elementor-icon-list-icon i {
    color: #0e9ce5;
    transition: color 0.4s ease, filter 0.4s ease;
}


/* ── DONE — green, full opacity ──────────────────────────── */
#gle-steps-list .elementor-icon-list-item.gle-step-done {
    opacity: 1;
    filter: none;
    background: rgba(0, 200, 100, 0.06);
    border: 1px solid rgba(0, 200, 100, 0.2);
    box-shadow: none;
    animation: none;
}
#gle-steps-list .elementor-icon-list-item.gle-step-done
    .elementor-icon-list-icon i {
    color: #00c864;
    animation: gleDonePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#gle-steps-list .elementor-icon-list-item.gle-step-done
    .elementor-icon-list-text {
    opacity: 0.6;
}


/* ── ERROR — red tint ────────────────────────────────────── */
#gle-steps-list .elementor-icon-list-item.gle-step-error {
    opacity: 1;
    filter: none;
    background: rgba(255, 60, 60, 0.06);
    border: 1px solid rgba(255, 60, 60, 0.25);
    box-shadow: none;
    animation: none;
}
#gle-steps-list .elementor-icon-list-item.gle-step-error
    .elementor-icon-list-icon i {
    color: #ff5555;
}


/* ── Lock topic area during generation ───────────────────── */
#c_trending_topics.gle-topics-locked {
    pointer-events: none;
    user-select: none;
}
#c_trending_topics.gle-topics-locked .c_generate_trending_article {
    opacity: 0.45;
    cursor: not-allowed;
}


/* ── Animations ──────────────────────────────────────────── */

/* Active pulse — teal glow breathing (designer's original) */
@keyframes glePulse {
    0%, 100% {
        box-shadow:
            0 0 4px rgba(0, 220, 190, 0.5),
            0 0 10px rgba(0, 220, 190, 0.3),
            0 0 20px rgba(0, 220, 190, 0.15);
    }
    50% {
        box-shadow:
            0 0 6px rgba(0, 220, 190, 0.9),
            0 0 15px rgba(0, 220, 190, 0.5),
            0 0 30px rgba(0, 220, 190, 0.25);
    }
}

/* Done check icon pop */
@keyframes gleDonePop {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ── Generating badge on #c_update_topic card ────────────── */
.gle-generating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(14, 156, 229, 0.1);
    border: 1px solid rgba(14, 156, 229, 0.35);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: #0e9ce5;
    letter-spacing: 0.3px;
    margin-top: 12px;
    animation: gleBadgeFadeIn 0.3s ease;
}

.gle-generating-badge i {
    font-size: 11px;
    color: #0e9ce5;
}

/* Animated dots on the "Generating" text */
.gle-generating-text::after {
    content: '';
    display: inline-block;
    animation: gleDotsLoop 1.4s steps(4, end) infinite;
}

@keyframes gleDotsLoop {
    0%   { content: '';    }
    25%  { content: '.';   }
    50%  { content: '..';  }
    75%  { content: '...'; }
    100% { content: '';    }
}

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