/* ============================================
   DHH - Design System & Global Styles
   Developers Hiring Hub
   Theme: Ultra Dark Black + White + Teal Glow
   ============================================ */

/* CSS VARIABLES */
:root {
    /* Colors */
    --color-black: #000000;
    --color-dark-1: #0a0a0a;
    --color-dark-2: #111111;
    --color-dark-3: #1a1a1a;
    --color-gray-1: #2a2a2a;
    --color-gray-2: #3a3a3a;
    --color-gray-3: #555555;
    --color-gray-4: #777777;
    --color-gray-5: #999999;
    --color-gray-6: #b7b7b7;
    --color-gray-7: #d7d7d7;
    --color-white: #ffffff;
    
    /* Teal Accent */
    --teal-primary: #008080;
    --teal-light: #00cccc;
    --teal-bright: #00d2d2;
    --teal-glow: rgba(0, 128, 128, 0.5);
    --teal-glow-strong: rgba(0, 128, 128, 0.8);
    --teal-bg: rgba(0, 128, 128, 0.08);
    --teal-border: rgba(0, 128, 128, 0.3);
    
    /* Gradients */
    --gradient-teal: linear-gradient(135deg, var(--teal-primary), var(--teal-bright));
    --gradient-dark: linear-gradient(180deg, var(--color-dark-1), var(--color-black));
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--teal-glow);
    --shadow-glow-strong: 0 0 60px var(--teal-glow-strong);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-modal: 1000;
    --z-tooltip: 1500;
    --z-notification: 2000;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-1);
}

::-webkit-scrollbar-thumb {
    background: var(--teal-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-dark-1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-light);
}

/* SELECTION */
::selection {
    background: var(--teal-primary);
    color: var(--color-white);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--color-gray-5);
    line-height: 1.8;
}

a {
    color: var(--teal-light);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--teal-bright);
    text-shadow: 0 0 10px var(--teal-glow);
}

code, pre {
    font-family: var(--font-mono);
}

/* UTILITY CLASSES */
.container {
    width: min(92%, 1400px);
    margin: 0 auto;
}

.container-narrow {
    width: min(92%, 1200px);
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-teal { color: var(--teal-light); }
.text-gray { color: var(--color-gray-5); }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-teal);
    color: var(--color-black);
    box-shadow: 0 4px 15px var(--teal-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--teal-glow-strong);
    color: var(--color-black);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-gray-3);
}

.btn-secondary:hover {
    border-color: var(--teal-primary);
    color: var(--teal-light);
    box-shadow: 0 0 20px var(--teal-glow);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--color-gray-6);
}

.btn-ghost:hover {
    background: rgba(0, 128, 128, 0.15);
    color: var(--teal-light);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* CARDS */
.card {
    background: var(--color-dark-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: var(--transition-base);
}

.card:hover {
    border-color: var(--teal-border);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.card:hover::before {
    opacity: 1;
}

.card-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* GLASSMORPHISM */
.glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.glass-strong {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.15);
}

/* GLOW EFFECTS */
.glow {
    box-shadow: 0 0 30px var(--teal-glow);
}

.glow-strong {
    box-shadow: 0 0 60px var(--teal-glow-strong);
}

.glow-text {
    text-shadow: 0 0 20px var(--teal-glow);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--teal-glow); }
    50% { box-shadow: 0 0 40px var(--teal-glow-strong); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.6s ease forwards; }
.animate-slide-in-left { animation: slideInLeft 0.6s ease forwards; }
.animate-slide-in-right { animation: slideInRight 0.6s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* LOADING SKELETON */
.skeleton {
    background: linear-gradient(90deg, var(--color-dark-2) 25%, var(--color-dark-3) 50%, var(--color-dark-2) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-teal {
    background: var(--teal-bg);
    color: var(--teal-light);
    border: 1px solid var(--teal-border);
}

.badge-success {
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.badge-warning {
    background: rgba(255, 200, 0, 0.1);
    color: #ffc800;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

.badge-danger {
    background: rgba(255, 100, 100, 0.1);
    color: #ff6464;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

/* FORMS */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--color-gray-6);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--color-dark-2);
    border: 1px solid var(--color-gray-2);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px var(--teal-bg);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-4);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* TABLES */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-lg);
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table th {
    background: var(--color-dark-2);
    font-weight: 600;
    color: var(--teal-light);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background: rgba(0, 128, 128, 0.05);
}

/* AVATAR */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-black);
    font-size: 1.2rem;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.9rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 2rem; }

/* STATUS INDICATORS */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--teal-primary);
    box-shadow: 0 0 10px var(--teal-glow);
}

.status-dot.success { background: #00ff80; box-shadow: 0 0 10px rgba(0, 255, 128, 0.5); }
.status-dot.warning { background: #ffc800; box-shadow: 0 0 10px rgba(255, 200, 0, 0.5); }
.status-dot.danger { background: #ff6464; box-shadow: 0 0 10px rgba(255, 100, 100, 0.5); }

/* DIVIDER */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gray-2), transparent);
    margin: var(--space-2xl) 0;
}

/* GRIDS */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* FLEX UTILITIES */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }
.gap-4 { gap: var(--space-xl); }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* RESPONSIVE UTILITIES */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ACCESSIBILITY */
.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 */
:focus-visible {
    outline: 2px solid var(--teal-primary);
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none !important;
    }
}
