/**
 * [Senior Standard] Mouse Tracker Style v3.8
 * Features: GPU Acceleration, Smooth Shadows, Mobile Fallback
 */

.mouse-tracker-app {
    max-width: 800px;
    margin: 0 auto;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mouse-tracker-surface {
    width: 100%;
    padding: 40px;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
}

.surface-header h2 { margin: 0 0 10px 0; color: #1e293b; }
.surface-header p { margin: 0; color: #64748b; }

.surface-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* The Floating Banner */
.floating-banner {
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 50px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    pointer-events: none; /* 마우스 통과 */
    will-change: transform;
    transform: translate3d(-50%, -50%, 0); /* 중앙 정렬 */
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s;
    opacity: 0; /* 초기엔 숨김 */
}

.floating-banner.active {
    opacity: 1;
}

.banner-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-tag {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

.banner-timer {
    font-size: 1.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

/* Glow Effect */
.banner-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

/* Mobile Fallback: Bottom Sheet */
@media (max-width: 768px) {
    .floating-banner {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90%;
        max-width: 400px;
        border-radius: 16px;
        justify-content: center;
        pointer-events: auto; /* 클릭 가능 */
        opacity: 1;
    }

    .mouse-tracker-surface {
        border: none;
        background: transparent;
    }
}
