/**
 * HC JOYN MENU - 프리미엄 모던 디자인
 * 미니멀하고 세련된 풀스크린 메뉴
 */

/* ========================================
   메뉴 트리거 버튼 - 프리미엄 디자인
======================================== */
.hc-joyn-menu-trigger {
    position: fixed;
    /* 스티키 헤더·로그인 모달 위에 항상 표시 (구글 로그인 후에도 동일) */
    z-index: 2147483646 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 6px 22px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    backdrop-filter: blur(10px);
    pointer-events: auto !important;
}

.hc-joyn-menu-trigger:hover {
    box-shadow: 0 12px 48px rgba(255, 107, 53, 0.6);
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

.hc-joyn-menu-trigger:active {
    transform: translateY(-1px) scale(1.02);
}

.hc-joyn-menu-trigger i {
    font-size: 15px;
    color: #fff;
    transition: transform 0.3s ease;
}

.hc-joyn-menu-trigger:hover i {
    transform: rotate(90deg);
}

.hc-joyn-menu-trigger-text {
    color: #fff;
    font-weight: 600;
}

/* 버튼 위치 (모바일은 미디어쿼리에서 safe-area로 덮어씀) */
.hc-joyn-menu-trigger-top-left {
    top: 50px !important;
    left: 50px;
}

.hc-joyn-menu-trigger-top-right {
    top: 50px !important;
    right: 50px;
}

/* 관리바가 있을 때 위치 조정 (모바일용) - 로고와 가로 정렬 */
@media (max-width: 768px) {
    .admin-bar .hc-joyn-menu-trigger-top-left {
        top: 86px !important;
    }
    
    .admin-bar .hc-joyn-menu-trigger-top-right {
        top: 86px !important;
    }
}

/* 데스크탑 햄버거 메뉴 위치 - 최고 우선순위 */
@media (min-width: 769px) {
    html body .hc-joyn-menu-trigger-top-right.hc-joyn-menu-trigger {
        top: 25px !important;
        right: 50px !important;
    }
    
    html body.admin-bar .hc-joyn-menu-trigger-top-right.hc-joyn-menu-trigger {
        top: 55px !important;
        right: 50px !important;
    }
    
    /* 다른 스타일이 덮어쓰는 것을 방지 */
    html body .hc-joyn-menu-trigger-top-right.hc-joyn-menu-trigger[data-desktop-position="true"] {
        right: 50px !important;
    }
}

/* 데스크탑에서도 메뉴 아이콘 표시 */
/* @media (min-width: 769px) {
    .hc-joyn-menu-trigger {
        display: none !important;
    }
} */

/* ========================================
   모바일 햄버거 버튼 위치 - 배터리 표시 밑 고정
   ★★★ [수정] 로그인 여부 관계없이 항상 같은 위치 ★★★
======================================== */
@media (max-width: 768px) {
    .hc-joyn-menu-trigger {
        padding: 7px 14px;
        font-size: 10px;
    }
    
    /* ★★★ [핵심] 배터리 표시 밑에 항상 고정 (54px) ★★★ */
    .hc-joyn-menu-trigger-top-left {
        top: max(54px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
        left: 40px;
    }
    
    .hc-joyn-menu-trigger-top-right {
        top: max(54px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
        right: 40px;
    }
    
    /* ★★★ [중요] 모바일에서는 관리바 무시 - 로그인 전/후 동일 위치 ★★★ */
    /* 모바일에서는 관리바가 보이지 않으므로 항상 54px 유지 */
    .admin-bar .hc-joyn-menu-trigger-top-left {
        top: max(54px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
    }
    
    .admin-bar .hc-joyn-menu-trigger-top-right {
        top: max(54px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
    }
}

/* 작은 모바일 (480px 이하) - 동일하게 54px 고정 */
@media (max-width: 480px) {
    .hc-joyn-menu-trigger-top-right {
        top: max(54px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
    }
    
    /* 관리바 있어도 모바일은 54px 유지 */
    .admin-bar .hc-joyn-menu-trigger-top-right {
        top: max(54px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
    }
}

/* ★★★ 하이브리드앱 - 모바일과 동일 54px ★★★ */
html body.hcjoyn-hybrid-app .hc-joyn-menu-trigger-top-right.hc-joyn-menu-trigger {
    top: max(54px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
    right: 50px !important;
}

/* 하이브리드앱도 관리바 무시 */
html body.hcjoyn-hybrid-app.admin-bar .hc-joyn-menu-trigger-top-right.hc-joyn-menu-trigger {
    top: max(54px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
    right: 50px !important;
}

/* ========================================
   데스크탑에서만 관리바 고려
======================================== */
@media (min-width: 769px) {
    /* 데스크탑에서 관리바 있을 때만 위치 조정 */
    .admin-bar .hc-joyn-menu-trigger {
        top: calc(32px + 20px) !important; /* 관리바 32px + 여유 20px */
    }
}


/* ========================================
   풀스크린 오버레이 - 글래스모피즘
   ★★★ GPU 가속 최적화 ★★★
======================================== */
.hc-joyn-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2147483646 !important;
    opacity: 0;
    visibility: hidden;
    /* ★★★ [수정] 비활성 시 클릭/스크롤 이벤트 완전 차단 방지 ★★★ */
    pointer-events: none !important;
    /* ★★★ GPU 가속 ★★★ */
    will-change: opacity, visibility;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    contain: layout style paint;
}

.hc-joyn-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    /* ★★★ [수정] 활성 시에만 이벤트 수신 ★★★ */
    pointer-events: auto !important;
}

/* ========================================
   메뉴 컨테이너 - 프리미엄 디자인
   ★★★ GPU 가속 최적화 ★★★
======================================== */
.hc-joyn-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    color: #fff;
    transform: translateX(100%);
    /* ★★★ GPU 가속 ★★★ */
    will-change: transform;
    -webkit-transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    contain: layout style;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hc-joyn-menu-overlay.active .hc-joyn-menu-container {
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

/* 모바일에서 전체 너비 */
@media (max-width: 768px) {
    .hc-joyn-menu-container {
        max-width: 100%;
    }
}

/* ========================================
   헤더 영역 - 미니멀 디자인
======================================== */
.hc-joyn-menu-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 70px 30px 10px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hc-joyn-menu-logo {
    margin: 0;
}

.hc-joyn-menu-logo-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.hc-joyn-menu-logo-link:hover {
    opacity: 1;
}

.hc-joyn-menu-logo-link:hover .hc-joyn-menu-logo-text {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hc-joyn-menu-logo img {
    max-height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.hc-joyn-menu-logo-link:hover img {
    transform: scale(1.1);
}

.hc-joyn-menu-logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.25s ease;
}

.hc-joyn-menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.hc-joyn-menu-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 140, 66, 0.6);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    color: #ff8c42;
}

.hc-joyn-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* ========================================
   상단 아이콘 메뉴 - 카드 스타일
======================================== */
.hc-joyn-menu-top-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 25px 20px 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    margin: -10px 0 0 0;
    border-bottom: 1px solid #ff8c42;
}

.hc-joyn-menu-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hc-joyn-menu-icon-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hc-joyn-menu-icon-item:hover::before {
    width: 120%;
    height: 120%;
    background: rgba(255, 107, 53, 0.25);
}

.hc-joyn-menu-icon-item:hover {
    transform: translateY(-8px);
}

.hc-joyn-menu-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.hc-joyn-menu-icon-item:hover .hc-joyn-menu-icon-wrapper {
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 140, 66, 0.6);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.hc-joyn-menu-icon-wrapper i {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.hc-joyn-menu-icon-item:hover .hc-joyn-menu-icon-wrapper i {
    transform: scale(1.2);
    color: #ff8c42;
}

.hc-joyn-menu-icon-text {
    font-size: 11px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hc-joyn-menu-icon-item:hover .hc-joyn-menu-icon-text {
    opacity: 1;
    color: #ff8c42;
}

/* ========================================
   메인 메뉴 리스트 - 프리미엄 디자인
======================================== */
.hc-joyn-menu-nav {
    flex: 1;
    padding: 2px 0 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.hc-joyn-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.hc-joyn-menu-list > li {
    margin: 0;
    position: relative;
}

.hc-joyn-menu-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    text-decoration: none !important;
    color: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 호버/클릭 시 배경 색 한 번에 변경 (슬라이드 없음) */
.hc-joyn-menu-item-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.25) 0%, rgba(255, 140, 66, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 0;
}

.hc-joyn-menu-item-link:hover::before,
.hc-joyn-menu-item-link:active::before {
    opacity: 1;
}

/* 왼쪽 액센트 바 - 한 번에 표시 */
.hc-joyn-menu-item-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff8c42 0%, rgba(255, 107, 53, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1;
}

.hc-joyn-menu-item-link:hover::after,
.hc-joyn-menu-item-link:active::after {
    opacity: 1;
}

.hc-joyn-menu-item-link:hover,
.hc-joyn-menu-item-link:active {
    padding-left: 30px;
}

/* 메뉴 텍스트 - 프리미엄 타이포그래피 */
.hc-joyn-menu-item-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: inherit;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
    max-width: 100%;
    box-sizing: border-box;
}

.hc-joyn-menu-item-link:hover .hc-joyn-menu-item-text,
.hc-joyn-menu-item-link:active .hc-joyn-menu-item-text {
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
    color: #ff8c42;
}

/* 서브메뉴 화살표 */
.hc-joyn-menu-item-arrow {
    display: none !important;
    font-size: 20px;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hc-joyn-menu-list > .menu-item-has-children > .hc-joyn-menu-item-link > .hc-joyn-menu-item-arrow {
    display: inline-block !important;
}

.hc-joyn-menu-list .sub-menu .hc-joyn-menu-item-arrow {
    display: none !important;
}

.hc-joyn-menu-list .hc-joyn-menu-item-link > i:not(.hc-joyn-menu-item-arrow),
.hc-joyn-menu-list .hc-joyn-menu-item-link > .submenu-toggle,
.hc-joyn-menu-list .hc-joyn-menu-item-link > span:not(.hc-joyn-menu-item-text) {
    display: none !important;
}

.hc-joyn-menu-list .hc-joyn-menu-item-link::before,
.hc-joyn-menu-list .hc-joyn-menu-item-link::after {
    /* 이미 사용 중 */
}

.hc-joyn-menu-item-link:hover .hc-joyn-menu-item-arrow,
.hc-joyn-menu-item-link:active .hc-joyn-menu-item-arrow {
    opacity: 1;
    color: #ff8c42;
}

.hc-joyn-menu-item-arrow.rotated {
    transform: rotate(180deg);
}

.hc-joyn-menu-item-link:hover .hc-joyn-menu-item-arrow.rotated,
.hc-joyn-menu-item-link:active .hc-joyn-menu-item-arrow.rotated {
    transform: rotate(180deg);
    color: #ff8c42;
}

/* 서브메뉴 */
.hc-joyn-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: none;
    overflow: hidden;
    overflow-x: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    box-sizing: border-box;
}

/* 서브메뉴 열린 부모 메뉴 - 오렌지 강조 (파란색 대신) */
.hc-joyn-menu-list > .sub-menu-open > .hc-joyn-menu-item-link::before,
.hc-joyn-menu-list > .sub-menu-open > .hc-joyn-menu-item-link::after {
    opacity: 1;
}
.hc-joyn-menu-list > .sub-menu-open > .hc-joyn-menu-item-link .hc-joyn-menu-item-text,
.hc-joyn-menu-list > .sub-menu-open > .hc-joyn-menu-item-link .hc-joyn-menu-item-arrow {
    color: #ff8c42 !important;
}
.hc-joyn-menu-list > .sub-menu-open > .hc-joyn-menu-item-link .hc-joyn-menu-item-text {
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
}

.hc-joyn-menu-list .sub-menu-open > .sub-menu {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hc-joyn-menu-list .sub-menu .hc-joyn-menu-item-link {
    padding-left: 60px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.hc-joyn-menu-list .sub-menu .hc-joyn-menu-item-link::after {
    width: 3px;
    background: rgba(255, 140, 66, 0.8);
}

.hc-joyn-menu-list .sub-menu .hc-joyn-menu-item-link:hover {
    padding-left: 70px;
}

.hc-joyn-menu-list .sub-menu .hc-joyn-menu-item-link:hover .hc-joyn-menu-item-text {
    color: #ff8c42;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
}

.hc-joyn-menu-list .sub-menu .hc-joyn-menu-item-text {
    font-size: 14px;
    font-weight: 500;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

/* ========================================
   하단 푸터 - 미니멀 디자인
======================================== */
.hc-joyn-menu-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.hc-joyn-menu-footer-btn {
    color: inherit;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.hc-joyn-menu-footer-btn:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 140, 66, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #ff8c42;
}

.hc-joyn-menu-footer-btn:active {
    transform: translateY(0);
}

.hc-joyn-menu-footer-divider {
    opacity: 0.3;
    font-size: 18px;
}

/* 하단 메뉴 닫기 버튼 - 빨간색 */
.hc-joyn-menu-footer-close-btn {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 28px;
    border-radius: 50px;
    border: 2px solid #c62828;
    background: #d32f2f;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    appearance: none;
}

.hc-joyn-menu-footer-close-btn:hover {
    background: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.5);
    color: #fff;
}

.hc-joyn-menu-footer-close-btn:active {
    transform: translateY(0);
}

.hc-joyn-menu-footer-close-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* ========================================
   스크롤바 스타일 - 프리미엄
======================================== */
.hc-joyn-menu-container::-webkit-scrollbar {
    width: 6px;
}

.hc-joyn-menu-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.hc-joyn-menu-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.hc-joyn-menu-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   애니메이션
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hc-joyn-menu-container.active .hc-joyn-menu-header,
.hc-joyn-menu-container.active .hc-joyn-menu-top-icons,
.hc-joyn-menu-container.active .hc-joyn-menu-nav,
.hc-joyn-menu-container.active .hc-joyn-menu-footer {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.hc-joyn-menu-container.active .hc-joyn-menu-top-icons {
    animation-delay: 0.1s;
}

.hc-joyn-menu-container.active .hc-joyn-menu-nav {
    animation-delay: 0.2s;
}

.hc-joyn-menu-container.active .hc-joyn-menu-footer {
    animation-delay: 0.3s;
}

/* ========================================
   테마별 스타일
======================================== */
.hc-joyn-menu-theme-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.hc-joyn-menu-theme-black {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #2d2d2d 100%);
}

/* 블랙 테마 전용 호버 스타일 - 오렌지 색상으로 변경 */
.hc-joyn-menu-theme-black .hc-joyn-menu-item-link:hover::before {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.3) 0%, rgba(255, 140, 66, 0.2) 100%);
}

.hc-joyn-menu-theme-black .hc-joyn-menu-item-link:hover .hc-joyn-menu-item-text {
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.6);
    color: #ff8c42 !important;
}

.hc-joyn-menu-theme-black .hc-joyn-menu-icon-item:hover .hc-joyn-menu-icon-wrapper {
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 140, 66, 0.6);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.hc-joyn-menu-theme-black .hc-joyn-menu-icon-item:hover .hc-joyn-menu-icon-wrapper i {
    color: #ff8c42;
}

.hc-joyn-menu-theme-black .hc-joyn-menu-icon-item:hover .hc-joyn-menu-icon-text {
    color: #ff8c42;
}

.hc-joyn-menu-theme-blue {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
}

.hc-joyn-menu-theme-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hc-joyn-menu-theme-red {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.hc-joyn-menu-theme-navy {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.hc-joyn-menu-theme-teal {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* ========================================
   반응형 조정
======================================== */
@media (max-width: 480px) {
    .hc-joyn-menu-header {
        padding: 70px 20px 20px 20px;
    }
    
    .hc-joyn-menu-top-icons {
        grid-template-columns: repeat(4, 1fr);
        padding: 15px 15px 8px 15px;
        gap: 10px;
    }
    
    .hc-joyn-menu-icon-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: 6px;
    }
    
    .hc-joyn-menu-icon-wrapper i {
        font-size: 24px;
    }
    
    .hc-joyn-menu-icon-text {
        font-size: 10px;
    }
    
    .hc-joyn-menu-item-link {
        padding: 14px 20px;
    }
    
    .hc-joyn-menu-item-text {
        font-size: 14px;
    }
    
    .hc-joyn-menu-footer {
        padding: 25px 20px;
        flex-direction: row;
        gap: 12px;
    }
    
    .hc-joyn-menu-footer-btn,
    .hc-joyn-menu-footer-close-btn {
        flex: 1;
        text-align: center;
    }
    
    .hc-joyn-menu-footer-divider {
        display: none;
    }
}

/* ========================================
   접근성
======================================== */
.hc-joyn-menu-trigger:focus,
.hc-joyn-menu-close:focus,
.hc-joyn-menu-item-link:focus,
.hc-joyn-menu-footer-btn:focus,
.hc-joyn-menu-footer-close-btn:focus {
    outline: 3px solid rgba(255, 140, 66, 0.8);
    outline-offset: 3px;
}
.hc-joyn-menu-item-link:focus .hc-joyn-menu-item-text,
.hc-joyn-menu-item-link:active .hc-joyn-menu-item-text {
    color: #ff8c42 !important;
}

/* 모션 감소 설정 존중 */
@media (prefers-reduced-motion: reduce) {
    .hc-joyn-menu-overlay,
    .hc-joyn-menu-container,
    .hc-joyn-menu-trigger,
    .hc-joyn-menu-icon-item,
    .hc-joyn-menu-item-link,
    * {
        transition: none !important;
        animation: none !important;
    }
}
