@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   2180.info - Global Styles & Design System
   ========================================== */

:root {
    /* Color Palette */
    --bg-dark: #07070a;
    --bg-surface: #101018;
    --bg-surface-hover: #171724;
    --bg-glass: rgba(16, 16, 24, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-dark: #1f2937;
    
    --color-primary: #7c3aed; /* Violet */
    --color-primary-hover: #6d28d9;
    --color-primary-glow: rgba(124, 58, 237, 0.4);
    
    --color-secondary: #06b6d4; /* Cyan */
    --color-secondary-hover: #0891b2;
    
    --color-success: #10b981; /* Emerald */
    --color-warning: #f59e0b; /* Amber */
    --color-danger: #ef4444; /* Red */
    
    /* Board Themes (Default: Tournament Green & Ash) */
    --board-light: #ececd7;
    --board-dark: #739552;
    --board-highlight-selected: rgba(247, 247, 105, 0.5);
    --board-highlight-last: rgba(186, 202, 43, 0.5);
    --board-highlight-check: rgba(239, 68, 68, 0.6);
    --board-highlight-legal: rgba(0, 0, 0, 0.15);
    --board-highlight-legal-dark: rgba(255, 255, 255, 0.15);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.2);
}

/* Board Themes Options */
.theme-wood {
    --board-light: #f0d9b5;
    --board-dark: #b58863;
}

.theme-blue {
    --board-light: #dee3e6;
    --board-dark: #8ca2ad;
}

.theme-dark-classic {
    --board-light: #e1e1e1;
    --board-dark: #5b5b5b;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--color-text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Global Layout */
#app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.view-section {
    display: none !important;
    width: 100%;
    flex: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.view-section.active {
    display: flex !important;
    opacity: 1;
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #fff 30%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

.hidden {
    display: none !important;
}
