/* ============================================================
   AIoT Lab 테마(2026-10-19) — HK Lab 브랜드의 현호색(Hyunho Blue)과 맞춘다.
   바탕: 짙은 남색 #07102A / #0A1530 · 강조: 현호 그라디언트 #2A3FBF → #3D6BE8 → #6FA9F3
   빛: 로고 노드에만 시안 #5FD4FF · 버튼 모서리 8px · 현재 메뉴는 그라디언트 밑줄
   이 파일은 _Layout 에서 다른 CSS 보다 뒤에 읽는다(덮어쓰기용). 참고: C:\Users\user\Desktop\HK\HK Lab Brand Design v1
   ============================================================ */

:root {
    --hy-ink: #07102A;
    --hy-ink-2: #0A1530;
    --hy-ink-3: #121E45;
    --hy-1: #2A3FBF;
    --hy-2: #3D6BE8;
    --hy-3: #6FA9F3;
    --hy-sky: #9EC4F7;
    --hy-mist: #EAF2FE;
    --hy-cyan: #5FD4FF;
    --hy-grad: linear-gradient(120deg, #2A3FBF 0%, #3D6BE8 55%, #6FA9F3 100%);
    --hy-gold: #E9C46A;
    --hy-coral: #FF8F8F;

    /* lab.css 의 강조색을 현호색으로 — 탭·배지·링크·카드 테두리가 함께 바뀐다 */
    --lab-accent: #3D6BE8;
    --lab-accent-bright: #9EC4F7;
    --lab-accent-ink: #2A3FBF;
    --lab-accent-soft: #EEF4FE;
    --lab-accent-border: #C9DDFB;
}

/* ── 상단 메뉴 ───────────────────────────────────────────── */
.navbar.site-nav {
    position: relative;
    background:
        radial-gradient(900px 140px at 12% -40%, rgba(61, 107, 232, .30), transparent 70%),
        radial-gradient(700px 120px at 88% -60%, rgba(111, 169, 243, .18), transparent 70%),
        linear-gradient(180deg, #091433 0%, var(--hy-ink) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 10px 30px -18px rgba(3, 8, 24, .9);
}
/* 아래 가장자리의 얇은 현호 그라디언트 선 */
.navbar.site-nav::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 107, 232, .7) 20%, rgba(111, 169, 243, .8) 50%, rgba(61, 107, 232, .7) 80%, transparent);
    opacity: .7; pointer-events: none;
}
.site-nav .navbar-brand { padding: .55rem 0; }
.site-nav .navbar-brand .aiot-logo { height: 50px; width: auto; display: block; }

.site-nav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .82) !important;
    font-weight: 500;
    opacity: 1 !important;
    transition: color .18s ease;
}
.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus-visible,
.site-nav .navbar-nav .nav-link.active { color: #fff !important; }

/* 현재 메뉴 표시 — 그라디언트 밑줄. 마우스를 올리면 옅게 펼쳐진다 */
.site-nav .navbar-nav .nav-link::after {
    content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .8rem; height: 2px; border-radius: 2px;
    background: var(--hy-grad);
    transform: scaleX(0); transform-origin: left center; opacity: 0;
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), opacity .2s ease;
}
.site-nav .navbar-nav .nav-link:hover::after { transform: scaleX(1); opacity: .55; }
.site-nav .navbar-nav .nav-link.active::after { transform: scaleX(1); opacity: 1; }

/* 색으로 구분하는 메뉴 — 바탕에 맞게 채도를 낮췄다 */
.site-nav .navbar-nav .nav-link.nav-gold { color: var(--hy-gold) !important; }
.site-nav .navbar-nav .nav-link.nav-gold:hover, .site-nav .navbar-nav .nav-link.nav-gold.active { color: #F6DC97 !important; }
.site-nav .navbar-nav .nav-link.nav-coral { color: var(--hy-coral) !important; }
.site-nav .navbar-nav .nav-link.nav-coral:hover, .site-nav .navbar-nav .nav-link.nav-coral.active { color: #FFB7B7 !important; }

/* 드롭다운 — 유리 같은 짙은 남색 판 */
.site-nav .dropdown-content {
    background: rgba(10, 21, 48, .97);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: .4rem;
    min-width: 214px;
    box-shadow: 0 18px 40px -12px rgba(3, 8, 24, .75), 0 0 0 1px rgba(61, 107, 232, .08);
    backdrop-filter: blur(14px);
}
.site-nav .dropdown-content a {
    color: rgba(255, 255, 255, .8);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .9rem;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.site-nav .dropdown-content a:hover { background: rgba(61, 107, 232, .2); color: #fff; }
.site-nav .dropdown-divider-line { height: 1px; margin: .35rem .5rem; background: rgba(255, 255, 255, .12); }
@media (min-width: 992px) {
    .site-nav .dropdown:hover .dropdown-content { animation: hy-drop .16s ease-out; }
}
@keyframes hy-drop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 접힌 메뉴(모바일) */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { border-top: 1px solid rgba(255, 255, 255, .06); padding-bottom: .5rem; }
    .site-nav .navbar-nav .nav-link::after { display: none; }
    .site-nav .dropdown-content { background: rgba(255, 255, 255, .04); box-shadow: none; border-color: rgba(255, 255, 255, .06); backdrop-filter: none; }
}
.site-nav .navbar-toggler { border-color: rgba(255, 255, 255, .18); }

/* ── 꼬리말 ─────────────────────────────────────────────── */
footer.site-footer {
    position: relative;
    background:
        radial-gradient(800px 160px at 85% 130%, rgba(61, 107, 232, .22), transparent 70%),
        #050B1F;
    color: rgba(255, 255, 255, .66);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-top: 1.1rem !important; padding-bottom: 1.1rem !important;
}
footer.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 107, 232, .6) 25%, rgba(111, 169, 243, .7) 50%, rgba(61, 107, 232, .6) 75%, transparent);
}
.site-footer .hh_footer { color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.7; }
.site-footer .hh_a, .site-footer .hh_a a { color: rgba(255, 255, 255, .72); }
.site-footer .hh_a a { text-decoration: none; border-bottom: 1px solid rgba(158, 196, 247, .35); }
.site-footer .hh_a a:hover { color: var(--hy-sky); border-bottom-color: var(--hy-sky); }
.site-footer .footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; letter-spacing: .02em; margin-bottom: .25rem; }
.site-footer .footer-brand .aiot-logo { height: 26px; width: 26px; }
.site-footer .footer-brand span { background: linear-gradient(90deg, #9EC4F7, #6FA9F3 55%, #C9DDFB); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── 버튼 — 모서리 8px, 주 버튼은 현호 그라디언트, 검은 버튼은 남색 ── */
.btn { border-radius: 8px; font-weight: 500; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, filter .18s ease; }
.btn-sm { border-radius: 7px; }
.btn-lg { border-radius: 10px; }
.btn:focus-visible, .btn:focus { box-shadow: 0 0 0 .2rem rgba(61, 107, 232, .28); }

.btn-primary {
    background: var(--hy-grad); background-size: 140% 100%; background-position: 0 0;
    border: 0; color: #fff;
    box-shadow: 0 6px 16px -10px rgba(42, 63, 191, .9);
}
.btn-primary:hover, .btn-primary:focus {
    color: #fff; background-position: 100% 0;
    box-shadow: 0 0 0 1px rgba(61, 107, 232, .25), 0 10px 26px -10px rgba(61, 107, 232, .75);
    transform: translateY(-1px);
}
.btn-primary:active, .btn-primary.active { transform: none; filter: brightness(.95); }
.btn-primary:disabled, .btn-primary.disabled { background: var(--hy-grad); opacity: .55; box-shadow: none; transform: none; }

.btn-outline-primary { color: var(--hy-2); border-color: rgba(61, 107, 232, .55); background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary.active { color: #fff; background: var(--hy-2); border-color: var(--hy-2); }

.btn-dark, .btn-secondary { background: var(--hy-ink-2); border-color: var(--hy-ink-2); color: #fff; }
.btn-dark:hover, .btn-secondary:hover, .btn-dark:focus, .btn-secondary:focus { background: var(--hy-ink-3); border-color: var(--hy-ink-3); color: #fff; box-shadow: 0 8px 20px -12px rgba(7, 16, 42, .9); }

.btn-outline-dark, .btn-outline-secondary { color: #334155; border-color: #CBD5E1; background: #fff; }
.btn-outline-dark:hover, .btn-outline-secondary:hover, .btn-outline-dark:focus, .btn-outline-secondary:focus,
.btn-outline-dark.active, .btn-outline-secondary.active { color: #fff; background: var(--hy-ink-2); border-color: var(--hy-ink-2); }

.btn-link { color: var(--hy-2); }
.btn-link:hover { color: var(--hy-1); }

/* 입력 칸 강조도 같은 색 */
.form-control:focus, .form-select:focus { border-color: rgba(61, 107, 232, .6); box-shadow: 0 0 0 .2rem rgba(61, 107, 232, .18); }
.form-check-input:checked { background-color: var(--hy-2); border-color: var(--hy-2); }

/* ── 로고(Shared/AiotLogo.razor) ─────────────────────────── */
.aiot-logo { overflow: visible; }
.aiot-logo .aiot-word {
    font-family: "Pretendard Variable", Pretendard, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800; font-size: 86px; letter-spacing: -1px;
}
.aiot-logo .aiot-sub {
    font-family: "Pretendard Variable", Pretendard, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600; font-size: 25px; letter-spacing: .6px; fill: rgba(255, 255, 255, .9);
}
.aiot-logo .aiot-edges { opacity: .85; }
.aiot-logo .aiot-cloud { filter: drop-shadow(0 0 6px rgba(61, 107, 232, .55)); }
.aiot-logo .aiot-halo { opacity: 0; animation: aiot-halo 6s ease-in-out infinite; }
.aiot-logo .h2 { animation-delay: 1s; }
.aiot-logo .h3 { animation-delay: 2s; }
.aiot-logo .h4 { animation-delay: 3s; }
.aiot-logo .h5 { animation-delay: 4s; }
.aiot-logo .h6 { animation-delay: 5s; }
@keyframes aiot-halo { 0%, 70%, 100% { opacity: 0; } 12% { opacity: .95; } 30% { opacity: .25; } }

/* 육각형 모서리를 따라 도는 데이터 점(마크 안 좌표, translate(2 2) 기준) */
.aiot-logo .aiot-packet {
    fill: #E6F7FF;
    filter: drop-shadow(0 0 3px #5FD4FF) drop-shadow(0 0 6px rgba(95, 212, 255, .8));
    offset-path: path("M60 12 L101.6 36 L101.6 84 L60 108 L18.4 84 L18.4 36 Z");
    offset-rotate: 0deg;
    animation: aiot-orbit 8s linear infinite;
}
.aiot-logo .aiot-packet.p2 { animation-delay: -4s; opacity: .8; }
@keyframes aiot-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* 지구 경선 — 좌우로 좁아졌다 넓어지며 도는 것처럼 */
.aiot-logo .aiot-meridian { transform-box: fill-box; transform-origin: center; animation: aiot-spin 5s linear infinite; }
.aiot-logo .aiot-meridian.m2 { animation-delay: -2.5s; }
@keyframes aiot-spin { 0% { transform: scaleX(1); opacity: .95; } 50% { transform: scaleX(.05); opacity: .35; } 100% { transform: scaleX(1); opacity: .95; } }

/* 마우스를 올리면 조금 더 밝게 */
.navbar-brand:hover .aiot-logo .aiot-cloud { filter: drop-shadow(0 0 10px rgba(111, 169, 243, .8)); }
.navbar-brand:hover .aiot-logo .aiot-edges { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .aiot-logo .aiot-halo, .aiot-logo .aiot-packet, .aiot-logo .aiot-meridian, .site-nav .dropdown-content { animation: none !important; }
    .aiot-logo .aiot-packet { display: none; }
}
