/* Holly AI call cards (row-templates/holly-ai-calls.html) — chart screenshot + animated AI entry highlight.
   Shared by the homepage and the AI Signals page.
   --ai-y / --ai-x (set inline per card) = the blue "AI" entry line's row and where it starts. */

.ai-calls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ai-call {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: #080c14;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .35);
    transition: border-color .2s ease;
}

.ai-call:hover {
    border-color: rgba(255, 138, 0, .4);
}

.ai-call__shot {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    line-height: 0;
}

.ai-call__shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* Light sweeping along the AI entry line toward the price label */
.ai-call__line {
    position: absolute;
    top: var(--ai-y);
    left: var(--ai-x);
    right: 6.4%;
    height: 3px;
    transform: translateY(-50%);
    overflow: hidden;
    pointer-events: none;
}

.ai-call__line::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, .95), transparent);
    box-shadow: 0 0 10px rgba(96, 165, 250, .9);
    animation: ai-call-line-sweep 3.4s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes ai-call-line-sweep {
    0% { transform: translateX(-100%); opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(340%); opacity: 0; }
}

/* Pulse ring on the "AI" price label */
.ai-call__ring {
    position: absolute;
    top: var(--ai-y);
    left: 93.4%;
    width: 6.6%;
    height: 4.4%;
    transform: translateY(-50%);
    border: 2px solid rgba(147, 197, 253, .9);
    border-radius: 6px;
    pointer-events: none;
    animation: ai-call-ring 3.4s ease-out infinite;
}

@keyframes ai-call-ring {
    0%, 55% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .6), 0 0 10px rgba(59, 130, 246, .35); }
    80% { box-shadow: 0 0 0 9px rgba(59, 130, 246, 0), 0 0 22px rgba(96, 165, 250, .7); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 0 10px rgba(59, 130, 246, .35); }
}

/* Caption strip: symbol · entry → last · gain */
.ai-call__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px 4px;
}

.ai-call__sym {
    flex: 0 0 auto;
    padding: 3px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 138, 0, .4);
    background: rgba(255, 138, 0, .12);
    color: #ffb25b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
}

.ai-call__detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.ai-call__label {
    color: #c5ced9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ai-call__prices {
    color: #8b97a8;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ai-call__gain {
    display: inline-block;
    margin-left: auto;
    color: #23d17d;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(35, 209, 125, .3);
    white-space: nowrap;
}

.ai-call.is-counted .ai-call__gain {
    animation: ai-call-gain-pop .5s ease-out;
}

@keyframes ai-call-gain-pop {
    50% { text-shadow: 0 0 26px rgba(35, 209, 125, .75); transform: scale(1.04); }
}

@media screen and (max-width: 767px) {
    .ai-calls {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    .ai-call__meta {
        gap: 10px;
    }

    .ai-call__prices {
        font-size: 12px;
        white-space: nowrap;
    }

    .ai-call__gain {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-call__line::after,
    .ai-call__ring,
    .ai-call.is-counted .ai-call__gain {
        animation: none;
    }
}
