/* GhostHub Base Styles */
:root {
    /* Core Color Palette */
    --primary-color: #2d3250; /* Refined dark blue */
    --primary-color-light: #3d4270; /* Lighter variant */
    --primary-color-dark: #1d2240; /* Darker variant */
    --secondary-color: #424874; /* Complementary blue */
    --accent-color: #f05454; /* Vibrant red accent */
    --accent-color-light: #f47676; /* Lighter accent */
    
    /* Background Colors */
    --background-color: #121212; /* Dark background */
    --surface-color: #1e1e2e; /* Slightly lighter for cards/surfaces */
    --overlay-color: rgba(18, 18, 18, 0.8); /* For overlays */
    
    /* Text Colors */
    --text-primary: #ffffff; /* Primary text */
    --text-secondary: rgba(255, 255, 255, 0.7); /* Secondary text */
    --text-tertiary: rgba(255, 255, 255, 0.5); /* Tertiary text */
    
    /* UI Element Colors */
    --card-background: #1e1e2e;
    --card-hover: #2a2a3a;
    --divider-color: rgba(255, 255, 255, 0.12);
    --error-color: #ff5252;
    --success-color: #4caf50;
    --info-color: #2196f3;
    
    /* RGB Values for Opacity Variations */
    --primary-color-rgb: 45, 50, 80;
    --secondary-color-rgb: 66, 72, 116;
    --accent-color-rgb: 240, 84, 84;
    --surface-color-rgb: 30, 30, 46; /* RGB for surface-color */
    
    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-circle: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.16);
    
    /* Animation Speeds */
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 350ms;
}

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

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-md);
}

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

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

/* Utility Classes */
.hidden-title, .hidden {
    display: none;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes message-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
