/* 
 * Hat5 Professional Design System
 * Exact match to current app's slate palette and typography
 */

/* ===== CSS RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ===== PROFESSIONAL DESIGN TOKENS ===== */
:root {
    /* EXACT SLATE PALETTE - MATCHING CURRENT APP */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    
    /* PROFESSIONAL ACCENT COLORS */
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --blue-dark: #1d4ed8;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
    
    /* PROFESSIONAL TYPOGRAPHY SCALE */
    --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    
    /* Font Weights - Exact match to auth pages */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;
    
    /* Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    --text-8xl: 6rem;        /* 96px */
    --text-9xl: 8rem;        /* 128px */
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* PROFESSIONAL SPACING SYSTEM */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;    /* 2px */
    --space-1: 0.25rem;       /* 4px */
    --space-1-5: 0.375rem;    /* 6px */
    --space-2: 0.5rem;        /* 8px */
    --space-2-5: 0.625rem;    /* 10px */
    --space-3: 0.75rem;       /* 12px */
    --space-3-5: 0.875rem;    /* 14px */
    --space-4: 1rem;          /* 16px */
    --space-5: 1.25rem;       /* 20px */
    --space-6: 1.5rem;        /* 24px */
    --space-7: 1.75rem;       /* 28px */
    --space-8: 2rem;          /* 32px */
    --space-9: 2.25rem;       /* 36px */
    --space-10: 2.5rem;       /* 40px */
    --space-11: 2.75rem;      /* 44px */
    --space-12: 3rem;         /* 48px */
    --space-14: 3.5rem;       /* 56px */
    --space-16: 4rem;         /* 64px */
    --space-20: 5rem;         /* 80px */
    --space-24: 6rem;         /* 96px */
    --space-28: 7rem;         /* 112px */
    --space-32: 8rem;         /* 128px */
    --space-36: 9rem;         /* 144px */
    --space-40: 10rem;        /* 160px */
    --space-44: 11rem;        /* 176px */
    --space-48: 12rem;        /* 192px */
    --space-52: 13rem;        /* 208px */
    --space-56: 14rem;        /* 224px */
    --space-60: 15rem;        /* 240px */
    --space-64: 16rem;        /* 256px */
    --space-72: 18rem;        /* 288px */
    --space-80: 20rem;        /* 320px */
    --space-96: 24rem;        /* 384px */
    
    /* PROFESSIONAL BORDER RADIUS */
    --radius-none: 0;
    --radius-sm: 0.125rem;     /* 2px */
    --radius: 0.25rem;         /* 4px */
    --radius-md: 0.375rem;     /* 6px */
    --radius-lg: 0.5rem;       /* 8px */
    --radius-xl: 0.75rem;      /* 12px */
    --radius-2xl: 1rem;        /* 16px */
    --radius-3xl: 1.5rem;      /* 24px */
    --radius-full: 9999px;
    
    /* PROFESSIONAL SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-none: 0 0 #0000;
    
    /* PROFESSIONAL TRANSITIONS */
    --transition-none: none;
    --transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-opacity: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-shadow: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-transform: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* PROFESSIONAL Z-INDEX SCALE */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;
    
    /* ADVANCED EFFECTS FOR SOPHISTICATED ANIMATIONS */
    --perspective-none: none;
    --perspective-250: 250px;
    --perspective-500: 500px;
    --perspective-750: 750px;
    --perspective-1000: 1000px;
    --perspective-1500: 1500px;
    --perspective-2000: 2000px;
    
    /* PROFESSIONAL TIMING FUNCTIONS */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== PROFESSIONAL BASE STYLES ===== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--slate-900);
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* ===== PROFESSIONAL TYPOGRAPHY SYSTEM ===== */

/* Headings - Exact match to auth page styling */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--slate-900);
    margin: 0;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-light);
}

h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-light);
}

h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

/* Paragraphs */
p {
    margin: 0;
    line-height: var(--leading-relaxed);
    color: var(--slate-600);
}

/* Links */
a {
    color: var(--slate-900);
    text-decoration: none;
    transition: var(--transition-colors);
}

a:hover {
    color: var(--slate-700);
}

/* ===== PROFESSIONAL LAYOUT SYSTEM ===== */

/* Container - Matching current app */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-12);
        padding-right: var(--space-12);
    }
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

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

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

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

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

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ===== PROFESSIONAL SPACING UTILITIES ===== */

/* Padding */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-12 { padding: var(--space-12); }

.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* Margin */
.m-0 { margin: var(--space-0); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ===== PROFESSIONAL COLOR UTILITIES ===== */

/* Text Colors */
.text-slate-900 { color: var(--slate-900); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-400 { color: var(--slate-400); }
.text-white { color: var(--white); }
.text-blue { color: var(--blue); }

/* Background Colors */
.bg-white { background-color: var(--white); }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-slate-900 { background-color: var(--slate-900); }
.bg-slate-800 { background-color: var(--slate-800); }

/* Border Colors */
.border-slate-200 { border-color: var(--slate-200); }
.border-slate-700 { border-color: var(--slate-700); }

/* ===== PROFESSIONAL BORDER UTILITIES ===== */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ===== PROFESSIONAL SHADOW UTILITIES ===== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* ===== PROFESSIONAL POSITIONING ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ===== PROFESSIONAL DISPLAY UTILITIES ===== */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* ===== PROFESSIONAL OVERFLOW UTILITIES ===== */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* ===== PROFESSIONAL TRANSFORM UTILITIES ===== */
.transform { transform: translateZ(0); }
.transform-gpu { transform: translate3d(0, 0, 0); }

/* ===== 3D AND ADVANCED EFFECTS BASE ===== */
.perspective-250 { perspective: var(--perspective-250); }
.perspective-500 { perspective: var(--perspective-500); }
.perspective-1000 { perspective: var(--perspective-1000); }
.perspective-1500 { perspective: var(--perspective-1500); }
.perspective-2000 { perspective: var(--perspective-2000); }

.preserve-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; }

/* ===== PROFESSIONAL UTILITY CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

.select-none {
    user-select: none;
}

/* ===== PROFESSIONAL RESPONSIVE UTILITIES ===== */
@media (min-width: 640px) {
    .sm\:text-lg { font-size: var(--text-lg); }
    .sm\:text-xl { font-size: var(--text-xl); }
    .sm\:text-2xl { font-size: var(--text-2xl); }
    .sm\:text-5xl { font-size: var(--text-5xl); }
}

@media (min-width: 768px) {
    .md\:text-xl { font-size: var(--text-xl); }
    .md\:text-2xl { font-size: var(--text-2xl); }
    .md\:text-3xl { font-size: var(--text-3xl); }
    .md\:text-6xl { font-size: var(--text-6xl); }
}

@media (min-width: 1024px) {
    .lg\:text-2xl { font-size: var(--text-2xl); }
    .lg\:text-3xl { font-size: var(--text-3xl); }
    .lg\:text-4xl { font-size: var(--text-4xl); }
    .lg\:text-7xl { font-size: var(--text-7xl); }
}

.logo-simple {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-black);
    font-size: var(--text-lg);
    color: var(--white);
}

/* ===== PROFESSIONAL FOCUS STYLES ===== */
*:focus {
    outline: 2px solid var(--slate-900);
    outline-offset: 2px;
}

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

/* ===== PROFESSIONAL SELECTION STYLES ===== */
::selection {
    background-color: var(--slate-900);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--slate-900);
    color: var(--white);
}