/**
 * Soundcheck Base Styles
 * Reset and foundational styles
 */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent pull-to-refresh and overscroll */
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
}

#soundcheck-app {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent text selection during swipes */
    user-select: none;
    -webkit-user-select: none;
}

/* Layer positioning base */
.layer-backdrop,
.layer-blur,
.layer-scrim,
.layer-particles,
.layer-player,
.layer-indicators,
.layer-nav,
.layer-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.layer-backdrop { z-index: var(--z-backdrop); }
.layer-blur { z-index: var(--z-blur); }
.layer-scrim { z-index: var(--z-scrim); }
.layer-particles { z-index: var(--z-particles); }
.layer-player { z-index: var(--z-player); pointer-events: auto; }
.layer-indicators { z-index: var(--z-indicators); }
.layer-nav { z-index: var(--z-nav); }
.layer-controls { z-index: calc(var(--z-controls) + 100); pointer-events: auto; }

/* Utility classes */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

button:focus:not(:focus-visible) {
    outline: none;
}
