/* 테마 기본 변수 및 스타일 */
:root {
    --theme-bg-image: none;
    --theme-font-color: inherit;
}

/* 배경 적용 - Color */
body.theme-bg-color,
#app-container.theme-bg-color {
    background-color: var(--theme-bg-color) !important;
    background-image: none !important;
}

#app-container.has-bg-image {
    background-image: var(--theme-bg-image) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 폰트 색상 강제 적용 클래스 */
body.theme-custom-font,
body.theme-custom-font p,
body.theme-custom-font h1,
body.theme-custom-font h2,
body.theme-custom-font h3,
body.theme-custom-font h4,
body.theme-custom-font h5,
body.theme-custom-font h6,
body.theme-custom-font span,
body.theme-custom-font div,
body.theme-custom-font li,
body.theme-custom-font a {
    color: var(--theme-font-color) !important;
}

/* 네비게이션 효과: Glass */
body.theme-nav-glass #main-footer,
body.theme-nav-glass header {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* 네비게이션 효과: Floating */
body.theme-nav-floating #main-footer {
    position: fixed !important;
    bottom: 3px !important;
    width: calc(100% - 40px) !important;
    max-width: 408px !important;
    /* 448px(max-w-md) - 40px(margin) */
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    z-index: 50 !important;
}

/* 네비게이션 효과: Neon */
body.theme-nav-neon #main-footer {
    background: #000 !important;
    border-top: 1px solid #333 !important;
}

body.theme-nav-neon #main-footer i,
body.theme-nav-neon #main-footer span {
    color: #fff !important;
    text-shadow: 0 0 5px #fff, 0 0 10px #ff00de, 0 0 20px #ff00de !important;
}

/* 화면 효과 컨테이너 */
#effect-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* BGM 버튼 */
#bgm-toggle {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
}

#bgm-toggle.playing {
    background: #10b981;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}