/* =====================================================
   Hover Cards Pro — Frontend Styles
   ===================================================== */

/* Lightbox */
.hcp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hcp-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}
.hcp-lb-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    animation: hcpFadeIn .25s ease;
}
@keyframes hcpFadeIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
.hcp-lb-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background .2s;
    line-height: 1;
    padding: 0;
}
.hcp-lb-close:hover { background: rgba(255,255,255,.28); }

/* Stage */
.hcp-lb-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}
.hcp-lb-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.hcp-lb-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
}
.hcp-lb-slide.active { opacity: 1; }
.hcp-lb-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrows */
.hcp-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background .2s, border-color .2s, color .2s;
    padding: 0;
}
.hcp-lb-arrow:hover {
    background: var(--hcp-accent, #e8c370);
    border-color: var(--hcp-accent, #e8c370);
    color: #111;
}
.hcp-lb-prev { left: 14px; }
.hcp-lb-next { right: 14px; }

/* Footer */
.hcp-lb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 12px;
}
.hcp-lb-title {
    font-size: 13px;
    color: #ccc;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.hcp-lb-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}
.hcp-lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s, transform .2s;
}
.hcp-lb-dot.active {
    background: var(--hcp-accent, #e8c370);
    transform: scale(1.25);
}
.hcp-lb-counter {
    font-size: 12px;
    color: #666;
    letter-spacing: .1em;
    flex-shrink: 0;
}

/* No-scroll when lightbox open */
body.hcp-lb-open { overflow: hidden; }

/* Placeholder */
.hcp-no-cards {
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Admin preview frame */
.hcp-preview-frame {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}
