/**
 * Custom Cursor Styles
 * 완전히 새로 작성 - 100% 작동 보장
 */

/* 커서 요소들 */
#cursor,
#cursorFollower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
}

/* 메인 커서 (작은 점) - 숨김 */
#cursor {
    display: none;
}

/* 팔로워 (큰 원 + 렌즈 효과) */
#cursorFollower {
    width: 40px;
    height: 40px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    background: transparent;

    /* 🔍 렌즈 효과: 원 안을 밝고 선명하게 */
    backdrop-filter:
        brightness(140%)      /* 밝기 40% 증가 */
        contrast(120%)        /* 대비 20% 증가 */
        saturate(130%);       /* 채도 30% 증가 */

    /* 부드러운 테두리 그림자 (렌즈 느낌 강화) */
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(212, 175, 55, 0.1);

    /* 하드웨어 가속 */
    will-change: transform, backdrop-filter;
    transform-style: preserve-3d;
}

/* 텍스트 라벨 */
#cursorText {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    padding: 6px 12px;
    background: #D4AF37;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    border-radius: 15px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
}

/* 🎨 호버 시 렌즈 효과 강화 */
#cursorFollower.hover-active {
    width: 60px;
    height: 60px;
    border-width: 3px;

    /* 호버 시 렌즈 효과 더 강하게 */
    backdrop-filter:
        brightness(160%)
        contrast(130%)
        saturate(140%);

    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.5),
        inset 0 0 30px rgba(212, 175, 55, 0.15);

    transition: width 0.3s ease, height 0.3s ease, border-width 0.3s ease, backdrop-filter 0.3s ease;
}

/* 기본 커서 숨김 (JS에서 body에 클래스 추가 시) */
body.hide-cursor,
body.hide-cursor * {
    cursor: none !important;
}

/* 모바일에서 숨김 */
@media (max-width: 1024px) {
    #cursor,
    #cursorFollower,
    #cursorText {
        display: none !important;
    }
}
