﻿/* =========================================================
   네온 카드 (일반 카드용)
   ========================================================= */
.neon-card {
    position: relative;
    margin: 20px 12px;
    padding: 5px;
    border-radius: 18px;
    background: rgba(59,130,246,.35);
    border: 1px solid rgb(0, 159, 255);
    box-shadow: 0 14px 32px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.10);
    backdrop-filter: blur(10px);
}


    /* 카드 내부 기본 텍스트 대비 보정(필요시) */
    .neon-card a {
        color: inherit;
    }
    .neon-card > * {
        position: relative;
        z-index: 1;
    }

    .neon-card:hover {
        box-shadow: 0 18px 44px rgba(0,0,0,.22), 0 6px 18px rgba(0,0,0,.12);
    }


    /* 기존 네온 회전 테두리 제거 */
    .neon-card::before {
        content: none !important;
    }


/* =========================================================
   네온 링 컨테이너 (사일로 카드 묶음)
   ========================================================= */
.neon-ring {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 104px;
    padding: 12px;
    border-radius: 16px;
    /* 카드 위에 올라가는 컨테이너 느낌 */
    background: transparent;
}

    .neon-ring > * {
        position: relative;
        z-index: 1;
    }

    .neon-ring::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 2px;
        border-radius: 16px;
        /* 과한 네온 제거 → 화이트 테마용 링 */
        background: linear-gradient( 135deg, rgba(91,95,233,.45), rgba(56,189,248,.45), rgba(125,211,252,.45) );
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        /* 은은한 강조만 */
        filter: blur(.2px);
    }


/* =========================================================
   사일로 카드 (이미지 + 수치 오버레이)
   ========================================================= */
/* 가로 배치 컨테이너 */
.silo-row {
    display: flex;
    flex-wrap: wrap; /* 화면 좁으면 자동 줄바꿈 */
    gap: 6px;
    align-items: flex-start;
}



/* 카드 자체: 완전 투명, 테두리 없음 */
.silo-card {
    width: 110px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    /* 핵심 */
    position: relative;
    height: auto;
    padding-top: 170px; /* 이미지/텍스트 영역 높이만큼 확보 */
    padding-bottom: 10px;
}

    /* 노란 글로우 제거 */
    .silo-card::before {
        content: none !important;
    }

    /* ✅ 사이로 이미지: 크기 키우고, 노란 글로우는 여기만 */
    .silo-card .neon-image {
        position: absolute;
        left: 50%;
        width: 100px; /* 살짝 키움 */
        top: -4px;
        transform: translateX(-50%);
        height: 170px;
        object-fit: contain;
        z-index: 1;
    }

    /* 중앙 텍스트 영역 */
    .silo-card .centered {
        position: absolute;
        top: 14px;
        left: 0;
        right: 0;
        text-align: center;
        z-index: 2;
        pointer-events: none;
    }

    /* ✅ 재고율 % : 더 투명하게 */
    .silo-card .badge-vol {
        display: inline-block;
        font-weight: 900;
        font-size: 24px;
        color: #2f353d; /* 완전 검정 제거 */
        background: rgba(255,255,255,.35);
        border: 1px solid rgba(0,0,0,.15);
        padding: 2px 10px;
        border-radius: 10px;
        backdrop-filter: blur(4px);
    }

    /* 현재 톤 */
    .silo-card .badge-ton {
        display: inline-block;
        margin-top: 4px;
        font-size: 15px;
        padding: 2px 8px;
        border-radius: 8px;
        background: rgba(255,255,255,.7);
        color: #3a4550;
        font-weight: 700;
        backdrop-filter: blur(2px);
    }

    /* meta를 absolute -> 일반 배치 */
    .silo-card .meta {
        position: static; /* 핵심 */
        transform: none;
        width: 110px;
        margin: 0 auto; /* 가운데 */
        background: rgba(255,255,255,.6);
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 12px;
        padding: 6px 10px;
        text-align: center;
        box-shadow: 0 6px 16px rgba(0,0,0,.10);
        z-index: 3;
    }


    .silo-card .meta .name {
        font-size: 12px;
        font-weight: 700;
        color: #344054;
        white-space: normal; /* 줄바꿈 허용 */
        overflow: visible; /* 잘림 해제 */
        text-overflow: clip; /* … 제거 */
    }



.silo-card .meta .time {
    font-size: 12px; /* 13 → 12 */
    color: #667085; /* 회색 계열 */
}


/* 경고는 기존처럼 빨강 깜빡 */
.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* =========================================================
   로딩 오버레이 – 패널(네온)
   ========================================================= */
.loading-overlay .overlay-panel {
    width: min(520px, 92vw);
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(10,16,38,.92);
    border: 2px solid rgba(18,255,247,.65);
    box-shadow: 0 0 16px rgba(18,255,247,.25), 0 0 32px rgba(73,166,255,.20);
    animation: neonPulse 2.2s ease-in-out infinite alternate;
}


/* =========================================================
   로딩 프로그레스 바 (Bootstrap 완전 분리)
   ========================================================= */
.loading-bar {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient( 90deg, rgba(18,255,247,.35), rgba(18,255,247,1), rgba(123,97,255,.85), rgba(18,255,247,.35) );
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(18,255,247,.45), 0 0 18px rgba(123,97,255,.30);
    animation: flow 1.2s linear infinite;
}

    .loading-bar::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: repeating-linear-gradient( 90deg, rgba(255,255,255,.30) 0 12px, rgba(255,255,255,0) 12px 24px );
        opacity: .40;
        animation: stripes .75s linear infinite;
    }


/* =========================================================
   네온 버튼
   ========================================================= */
.btn-neon {
    background: rgba(255,255,255,.9);
    border: 2px solid rgba(59,130,246,.6);
    color: #2563eb;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    backdrop-filter: blur(6px);
    transition: all .2s ease;
}

    .btn-neon:hover {
        background: rgba(239,246,255,.95);
        border-color: #2563eb;
        color: #1d4ed8;
        box-shadow: 0 6px 16px rgba(37,99,235,.25);
    }

    .btn-neon:active {
        transform: translateY(1px);
        box-shadow: 0 3px 8px rgba(0,0,0,.15);
    }


