/* ========================================
   BASE STYLES - CSS Variables, Reset, Typography, Utilities
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary-color: #005A8A;
    --primary-light: #009FE3;
    --primary-gradient: linear-gradient(135deg, #005A8A 0%, #0074B6 100%);
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-rem: 'REM', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Typography Specific */
    --text-black: #111111;
    --text-muted-foreground: #9ca3af;
    --text-secondary: #4b5563;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 80px;
    --spacing-5xl: 120px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 2px 8px rgba(0, 90, 138, 0.15);
    
    /* Button Variables */
    --btn-primary-bg: #005A8A;
    --btn-primary-color: #fff;
    --btn-primary-hover: #009FE3;
    
    /* Container Sizes */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -0.025em;
}

h2 {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
}

h3 {
    font-size: 1.875rem;
    font-weight: var(--font-weight-bold);
}

h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* Typography Classes - Legacy Support */
.title-principal {
    font-family: var(--font-rem);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-black);
}

.subtitle, .counter {
    font-family: var(--font-rem);
    font-size: 0.75rem;
    color: var(--text-muted-foreground);
    font-weight: 400;
}

.btn-create-host {
    font-family: var(--font-rem);
    font-size: 1rem;
    font-weight: 400;
}

.host-card-title {
    font-family: var(--font-rem);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-black);
}

.label-campo {
    font-family: var(--font-rem);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.valor-campo {
    font-family: var(--font-rem);
    font-size: 1rem;
    color: var(--text-black);
    font-weight: 400;
}

/* Layout Utilities */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

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

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

/* Display Utilities */
.hidden {
    display: none !important;
}

.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;
}

/* Visual Effects */
.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Language Selector */
.language-select {
    background: var(--gray-100);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    outline: none;
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
    margin-left: 8px;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 10px;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L8 8L13 3' stroke='%23005A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.language-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(0, 159, 227, 0.15);
}

.language-select option {
    color: var(--primary-color);
    background: var(--white);
    padding: 8px;
}

.language-notification {
    font-family: var(--font-family);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --spacing-5xl: 80px;
        --spacing-4xl: 60px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-5xl: 60px;
        --spacing-4xl: 40px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ========================================
   TIPOGRAFIA ESPECÍFICA DO PDB
   ======================================== */

.title-principal {
    font-family: var(--font-rem);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-black);
}

.subtitle, .counter {
    font-family: var(--font-rem);
    font-size: 0.75rem;
    color: var(--text-muted-foreground);
    font-weight: 400;
}

.btn-create-host {
    font-family: var(--font-rem);
    font-size: 1rem;
    font-weight: 400;
}

.host-card-title {
    font-family: var(--font-rem);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-black);
}

.label-campo {
    font-family: var(--font-rem);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.valor-campo {
    font-family: var(--font-rem);
    font-size: 1rem;
    color: var(--text-black);
    font-weight: 400;
}
