/* =====================================================
   Box Animation Module – Admin UI (Normalized)
===================================================== */

.via-box-animation-admin {
    --via-border: #e2e4e7;
    --via-bg-soft: #f6f7f7;
    --via-text-muted: #646970;
    --via-radius: 12px;
}

/* =====================================================
   ANIMATION GALLERY (KHUNG TỔNG MODULE)
===================================================== */

.via-animation-gallery {
    border: 1px solid var(--via-border);
    border-radius: var(--via-radius);
    background: #fff;
    overflow: hidden;
}

.via-animation-gallery-header {
    padding: 14px 16px;
    font-weight: 600;
    background: linear-gradient(180deg, #ffffff, var(--via-bg-soft));
    border-bottom: 1px solid var(--via-border);
}

.via-animation-gallery-body {
    padding: 0;
}

/* =====================================================
   ANIMATION ITEM (MỖI HIỆU ỨNG)
===================================================== */

.via-animation-item {
    border-bottom: 1px solid var(--via-border);
}

.via-animation-item:last-child {
    border-bottom: none;
}

.via-animation-item-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: 360px;
}

/* CỘT CHUNG */
.via-animation-item-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* VÁCH NGĂN */
.via-animation-item-col + .via-animation-item-col {
    border-left: 1px solid var(--via-border);
}

/* HEADER CỘT */
.via-animation-item-header {
    padding: 14px 16px;
    font-weight: 600;
    background: linear-gradient(180deg, #ffffff, var(--via-bg-soft));
    border-bottom: 1px solid var(--via-border);
}

/* BODY CỘT */
.via-animation-item-body {
    padding: 16px;
    flex: 1; /* ép chiều cao bằng nhau */
}

/* =====================================================
   INFO CONTENT
===================================================== */

.via-animation-info p {
    margin: 8px 0;
    color: var(--via-text-muted);
    line-height: 1.6;
}

.via-animation-info code {
    display: inline-block;
    background: #111;
    color: #3cff9b;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* CODE BLOCK */
.via-animation-info pre {
    margin-top: 12px;
    background: #0d1117;
    color: #c9d1d9;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
}

/* =====================================================
   EFFECT: LIGHT BEAM (CHỈ RIÊNG ANIMATION NÀY)
===================================================== */

.via-light-beam {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* IMAGE */
.via-light-beam.via-admin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    pointer-events: none;
}

/* PARTICLE */
.via-light-beam .circle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); /* trong suốt hơn */
  opacity: 0.8;
  filter: blur(0px);
  /* không dùng box-shadow */
  clip-path: polygon(
    30% 0%, 70% 0%, 
    100% 30%, 100% 70%, 
    70% 100%, 30% 100%, 
    0% 70%, 0% 30%
  );}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
    .via-animation-item-grid {
        grid-template-columns: 1fr;
    }

    .via-animation-item-col + .via-animation-item-col {
        border-left: none;
        border-top: 1px solid var(--via-border);
    }
}