/**
 * Wolfpack Player Platform - Design System
 * Based on Figma designs with Material Design 3 principles
 */

/* ==========================================
   CSS VARIABLES - Complete Color System
   ========================================== */
:root {
    /* Brand Colors */
    --wolfpack-primary: #fda329;
    --wolfpack-primary-light: #ffc88e;
    --wolfpack-primary-dark: #885200;
    --wolfpack-on-primary: #482900;
    --wolfpack-primary-container: #fda329;
    --wolfpack-on-primary-container: #693e00;
    --wolfpack-primary-fixed: #ffddbb;
    --wolfpack-primary-fixed-dim: #ffb867;
    --wolfpack-on-primary-fixed: #2b1700;
    --wolfpack-on-primary-fixed-variant: #673d00;

    /* Surface Colors */
    --wolfpack-background: #0F0E0D;
    --wolfpack-surface: #151311;
    --wolfpack-surface-dim: #151311;
    --wolfpack-surface-bright: #3b3936;
    --wolfpack-surface-container-lowest: #100e0c;
    --wolfpack-surface-container-low: #1d1b19;
    --wolfpack-surface-container: #211f1d;
    --wolfpack-surface-container-high: #2c2a27;
    --wolfpack-surface-container-highest: #373432;

    /* Surface Variants */
    --wolfpack-surface-variant: #373432;
    --wolfpack-on-surface: #e7e1de;
    --wolfpack-on-surface-variant: #d9c3ae;
    --wolfpack-surface-tint: #ffb867;

    /* Secondary Colors */
    --wolfpack-secondary: #cbc5c0;
    --wolfpack-on-secondary: #33302c;
    --wolfpack-secondary-container: #4c4844;
    --wolfpack-on-secondary-container: #bdb7b2;
    --wolfpack-secondary-fixed: #e8e1db;
    --wolfpack-secondary-fixed-dim: #cbc5c0;
    --wolfpack-on-secondary-fixed: #1e1b18;
    --wolfpack-on-secondary-fixed-variant: #4a4642;

    /* Tertiary Colors */
    --wolfpack-tertiary: #d9d1cd;
    --wolfpack-on-tertiary: #34302d;
    --wolfpack-tertiary-container: #bdb6b1;
    --wolfpack-on-tertiary-container: #4c4744;
    --wolfpack-tertiary-fixed: #e9e1dc;
    --wolfpack-tertiary-fixed-dim: #ccc5c0;
    --wolfpack-on-tertiary-fixed: #1e1b18;
    --wolfpack-on-tertiary-fixed-variant: #4a4643;

    /* Error Colors */
    --wolfpack-error: #ffb4ab;
    --wolfpack-on-error: #690005;
    --wolfpack-error-container: #93000a;
    --wolfpack-on-error-container: #ffdad6;

    /* Outline Colors */
    --wolfpack-outline: #a18d7b;
    --wolfpack-outline-variant: #534434;

    /* Inverse Colors */
    --wolfpack-inverse-surface: #e7e1de;
    --wolfpack-inverse-on-surface: #32302e;
    --wolfpack-inverse-primary: #885200;

    /* On Background */
    --wolfpack-on-background: #e7e1de;

    /* Custom Brand Colors */
    --wolfpack-brand-neutral: #1C1A18;
    --wolfpack-surface-1: #242220;
    --wolfpack-surface-2: #2E2C29;
    --wolfpack-surface-3: #3A3733;
    --wolfpack-text-secondary: #8A8480;
    --wolfpack-text-muted: #3A3733;

    /* Border Radius */
    --wolfpack-radius-sm: 4px;
    --wolfpack-radius-md: 8px;
    --wolfpack-radius-lg: 12px;
    --wolfpack-radius-xl: 16px;
    --wolfpack-radius-full: 9999px;

    /* Spacing */
    --wolfpack-spacing-xs: 0.5rem;
    --wolfpack-spacing-sm: 0.75rem;
    --wolfpack-spacing-md: 1rem;
    --wolfpack-spacing-lg: 1.5rem;
    --wolfpack-spacing-xl: 2rem;
    --wolfpack-spacing-2xl: 3rem;

    /* Transitions */
    --wolfpack-transition-fast: 150ms ease-in-out;
    --wolfpack-transition-normal: 200ms ease-in-out;
    --wolfpack-transition-slow: 300ms ease-in-out;

    /* Shadows */
    --wolfpack-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --wolfpack-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --wolfpack-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --wolfpack-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ==========================================
   FONT FACES
   ========================================== */

/* Epilogue - Headlines */
@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 700;
    src: local('Epilogue Bold'), local('Epilogue-700');
}

@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 800;
    src: local('Epilogue ExtraBold'), local('Epilogue-800');
}

@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 900;
    src: local('Epilogue Black'), local('Epilogue-900');
}

/* Manrope - Body Text */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    src: local('Manrope Regular'), local('Manrope-400');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    src: local('Manrope Medium'), local('Manrope-500');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    src: local('Manrope SemiBold'), local('Manrope-600');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    src: local('Manrope Bold'), local('Manrope-700');
}

/* Space Grotesk - Labels */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300;
    src: local('Space Grotesk Light'), local('SpaceGrotesk-300');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    src: local('Space Grotesk Regular'), local('SpaceGrotesk-400');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    src: local('Space Grotesk Medium'), local('SpaceGrotesk-500');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    src: local('Space Grotesk Bold'), local('SpaceGrotesk-700');
}

/* ==========================================
   MATERIAL SYMBOLS OUTLINED
   ========================================== */

/* Material Symbols Outlined Font */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url('https://fonts.gstatic.com/s/materialsymbolsoutlined/latest/v2/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsI.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* Filled variant for icons */
.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================
   BASE STYLES
   ========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--wolfpack-on-background);
    background-color: var(--wolfpack-background);
    overflow-x: hidden;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

/* Headlines - Epilogue */
.wolfpack-font-headline {
    font-family: 'Epilogue', 'Arial Black', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wolfpack-headline-display {
    font-family: 'Epilogue', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.wolfpack-headline-large {
    font-family: 'Epilogue', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wolfpack-headline-medium {
    font-family: 'Epilogue', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.wolfpack-headline-small {
    font-family: 'Epilogue', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Body - Manrope */
.wolfpack-font-body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}

.wolfpack-body-large {
    font-size: 1.125rem;
    line-height: 1.7;
}

.wolfpack-body-medium {
    font-size: 1rem;
    line-height: 1.6;
}

.wolfpack-body-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Labels - Space Grotesk */
.wolfpack-font-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wolfpack-label-large {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.wolfpack-label-medium {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wolfpack-label-small {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ==========================================
   BACKGROUND PATTERNS
   ========================================== */

/* Felt Texture - Subtle diagonal pattern */
.wolfpack-felt-texture {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.012) 0px,
        rgba(255, 255, 255, 0.012) 1px,
        transparent 1px,
        transparent 8px
    );
}

.wolfpack-felt-texture-strong {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 10px
    );
}

/* Pool Felt - Green gradient */
.wolfpack-pool-felt {
    background: linear-gradient(135deg, #0D3D1A 0%, #155e2a 100%);
}

/* ==========================================
   GLASS & CARDS
   ========================================== */

/* Glass Card Effect */
.wolfpack-glass-card {
    background: rgba(22, 20, 18, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(253, 163, 41, 0.3);
    border-top: 3px solid var(--wolfpack-primary);
}

/* Glass Panel */
.wolfpack-glass-panel {
    background: rgba(46, 44, 41, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Surface Cards */
.wolfpack-card {
    background: var(--wolfpack-surface-container);
    border-radius: var(--wolfpack-radius-lg);
    border: 1px solid var(--wolfpack-outline-variant);
}

.wolfpack-card-primary {
    background: var(--wolfpack-surface-container);
    border-radius: var(--wolfpack-radius-xl);
    border: 1px solid var(--wolfpack-surface-3);
    position: relative;
    overflow: hidden;
}

.wolfpack-card-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--wolfpack-primary);
    z-index: 10;
}

/* ==========================================
   VIGNETTE & OVERLAYS
   ========================================== */

/* Vignette Effect */
.wolfpack-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Blur Background */
.wolfpack-blur-bg {
    filter: blur(12px);
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================
   BADGES & TAGS
   ========================================== */

.wolfpack-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--wolfpack-radius-full);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(253, 163, 41, 0.1);
    color: var(--wolfpack-primary);
    border: 1px solid rgba(253, 163, 41, 0.3);
}

.wolfpack-badge-season {
    background: rgba(253, 163, 41, 0.1);
    color: var(--wolfpack-primary);
    border: 1px solid rgba(253, 163, 41, 0.3);
    padding: 6px 16px;
    border-radius: var(--wolfpack-radius-full);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ==========================================
   BUTTONS
   ========================================== */

.wolfpack-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--wolfpack-radius-lg);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--wolfpack-transition-normal);
    border: none;
    outline: none;
}

.wolfpack-btn-primary {
    background: var(--wolfpack-primary);
    color: var(--wolfpack-on-primary);
}

.wolfpack-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.wolfpack-btn-secondary {
    background: var(--wolfpack-surface-container-highest);
    color: var(--wolfpack-on-surface);
    border: 1px solid var(--wolfpack-outline-variant);
}

.wolfpack-btn-secondary:hover {
    background: var(--wolfpack-surface-3);
    color: white;
}

.wolfpack-btn-ghost {
    background: transparent;
    color: var(--wolfpack-on-surface-variant);
    border: 1px solid transparent;
}

.wolfpack-btn-ghost:hover {
    background: var(--wolfpack-surface-container-low);
    color: white;
}

.wolfpack-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

.wolfpack-input-group {
    margin-bottom: 1.5rem;
}

.wolfpack-input-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wolfpack-on-surface-variant);
    margin-bottom: 0.5rem;
}

.wolfpack-input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 1rem;
    background: var(--wolfpack-surface-container-highest) !important;
    border: 1px solid transparent !important;
    border-radius: var(--wolfpack-radius-md) !important;
    color: var(--wolfpack-on-surface) !important;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    transition: all var(--wolfpack-transition-fast);
    outline: none;
}

.wolfpack-input::placeholder {
    color: rgba(217, 195, 205, 0.4) !important;
}

.wolfpack-input:focus {
    border-color: var(--wolfpack-primary) !important;
    box-shadow: 0 0 0 2px rgba(253, 163, 41, 0.2) !important;
}

.wolfpack-input-error {
    border-color: var(--wolfpack-error) !important;
}

.wolfpack-input-error:focus {
    box-shadow: 0 0 0 2px rgba(255, 180, 171, 0.2) !important;
}

.wolfpack-textarea {
    min-height: 120px;
    padding: 1rem;
    resize: vertical;
}

.wolfpack-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9c3ae' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

/* ==========================================
   TOGGLE / TABS
   ========================================== */

.wolfpack-toggle-group {
    display: flex;
    background: var(--wolfpack-surface-container-lowest);
    padding: 4px;
    border-radius: var(--wolfpack-radius-md);
    gap: 4px;
}

.wolfpack-toggle-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: var(--wolfpack-radius-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    background: transparent;
    color: var(--wolfpack-on-surface-variant);
    border: none;
    cursor: pointer;
    transition: all var(--wolfpack-transition-fast);
}

.wolfpack-toggle-btn.active {
    background: var(--wolfpack-surface-container-highest);
    color: var(--wolfpack-primary);
}

.wolfpack-toggle-btn:hover:not(.active) {
    color: white;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */

.wolfpack-progress {
    width: 100%;
    height: 4px;
    background: var(--wolfpack-surface-container);
    border-radius: var(--wolfpack-radius-full);
    overflow: hidden;
}

.wolfpack-progress-bar {
    height: 100%;
    background: var(--wolfpack-primary);
    border-radius: var(--wolfpack-radius-full);
    transition: width var(--wolfpack-transition-slow);
}

/* ==========================================
   AVATAR
   ========================================== */

.wolfpack-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--wolfpack-radius-full);
    background: var(--wolfpack-surface-3);
    border: 2px solid var(--wolfpack-surface-3);
    overflow: hidden;
    color: var(--wolfpack-on-surface);
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
}

.wolfpack-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wolfpack-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}

.wolfpack-avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

.wolfpack-avatar-primary {
    border-color: var(--wolfpack-primary);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.wolfpack-text-primary {
    color: var(--wolfpack-primary);
}

.wolfpack-text-secondary {
    color: var(--wolfpack-text-secondary);
}

.wolfpack-bg-surface {
    background-color: var(--wolfpack-surface);
}

.wolfpack-bg-surface-1 {
    background-color: var(--wolfpack-surface-1);
}

.wolfpack-bg-surface-2 {
    background-color: var(--wolfpack-surface-2);
}

.wolfpack-bg-surface-3 {
    background-color: var(--wolfpack-surface-3);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes wolfpack-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wolfpack-spin {
    to {
        transform: rotate(360deg);
    }
}

.wolfpack-fade-in {
    animation: wolfpack-fade-in 0.3s ease-out;
}

.wolfpack-spin {
    animation: wolfpack-spin 1s linear infinite;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .wolfpack-headline-display {
        font-size: 2.5rem;
    }

    .wolfpack-headline-large {
        font-size: 2rem;
    }

    .wolfpack-headline-medium {
        font-size: 1.5rem;
    }

    .wolfpack-body-large {
        font-size: 1rem;
    }
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--wolfpack-surface-container);
}

::-webkit-scrollbar-thumb {
    background: var(--wolfpack-surface-3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wolfpack-primary);
}

/* ==========================================
   SELECTION
   ========================================== */

::selection {
    background: var(--wolfpack-primary-container);
    color: var(--wolfpack-on-primary-container);
}

::-moz-selection {
    background: var(--wolfpack-primary-container);
    color: var(--wolfpack-on-primary-container);
}
