/* ==========================================================================
   BASE STYLES - Core foundation for SongMatch application

   Contains:
   - CSS Custom Properties (Design Tokens)
   - Global Reset & Typography
   - Base Layout Elements
   - Scrollbar Styling
   - Shared Utility Classes
   ========================================================================== */

/* CSS Custom Properties - Design Tokens */
:root {
    /* Colors */
    --color-primary: #1DB954;
    --color-primary-bright: #1ed760;
    --color-primary-alpha-10: rgba(29, 185, 84, 0.1);
    --color-primary-alpha-20: rgba(29, 185, 84, 0.2);
    --color-primary-alpha-30: rgba(29, 185, 84, 0.3);
    --color-primary-alpha-40: rgba(29, 185, 84, 0.4);
    --color-primary-alpha-50: rgba(29, 185, 84, 0.5);
    --color-primary-alpha-60: rgba(29, 185, 84, 0.6);
    --color-primary-alpha-70: rgba(29, 185, 84, 0.7);
    --color-primary-alpha-80: rgba(29, 185, 84, 0.8);

    --color-background: #0a0a0f;
    --color-text-primary: #eaeaea;
    --color-text-secondary: #b3b3b3;
    --color-text-tertiary: #888;
    --color-text-muted: #ccc;

    --color-white-alpha-05: rgba(255, 255, 255, 0.05);
    --color-white-alpha-08: rgba(255, 255, 255, 0.08);
    --color-white-alpha-10: rgba(255, 255, 255, 0.1);
    --color-white-alpha-12: rgba(255, 255, 255, 0.12);
    --color-white-alpha-15: rgba(255, 255, 255, 0.15);
    --color-white-alpha-16: rgba(255, 255, 255, 0.16);
    --color-white-alpha-18: rgba(255, 255, 255, 0.18);
    --color-white-alpha-20: rgba(255, 255, 255, 0.2);
    --color-white-alpha-30: rgba(255, 255, 255, 0.3);

    /* Border Colors */
    --border-primary: var(--color-primary-alpha-40);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-lighter: rgba(255, 255, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.2);

    /* Status Colors */
    --color-success: var(--color-primary-bright);
    --color-error: #ff6b9d;
    --color-warning: #ffc107;
    --color-info: #60a5fa;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    /* Layout */
    --max-width-content: 1280px;
    --player-footer-height: 90px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typography & Layout */
body {
    font-family: var(--font-family-primary);
    background: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--player-footer-height);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-white-alpha-05);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-alpha-50);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-alpha-70);
}

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

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.max-w-content {
    max-width: var(--max-width-content);
    margin: 0 auto;
}