/* Main CSS - Core Variables and Base Styles */

:root {
    /* Color Palette */
    --primary-bg: #0a0a0a;
    --secondary-bg: rgba(30, 30, 30, 0.7);
    --accent-color: #ff9900;
    --light_border-color : #ede9e3;
    --text-color: #e0e0e0;
    --border-color: #444;
    --border-light-color: rgba(216, 210, 210, 0.5);
    --glow-color: rgba(255, 153, 0, 0.5);
    
    /* Typography */
    --font-header: 'Exo 2', sans-serif;
    --font-body: 'Titillium Web', sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 15px;
    --radius-xl: 30px;
    
    /* Shadows */
    --shadow-glow: 0 0 15px var(--glow-color), 0 0 20px var(--glow-color) inset;
    --shadow-card: 0 4px 10px rgba(0,0,0,0.5);
    --shadow-modal: 0 0 20px var(--glow-color);
    
    /* Transitions */
    --transition-very-fast: 0.01s ease;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index Scale */
    --z-navigation: 100;
    --z-modal: 1000;
    --z-cookie-banner: 2000;
}
/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
}

html, body {
    height: 100%;
    overflow: hidden; /* Prevents scrolling on the body itself */
}

body {
    font-family: var(--font-body);
    background-color: #000;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard syntax */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    line-height: 1.2;
}

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

/* Scrollbar Styling */
*::-webkit-scrollbar {
    width: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

/* Utility Classes */

/* More robust text selection disabling */
button,
.skill-item,
.selection-item,
.build-card-selector,
.custom-selector {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}

.hidden {
    display: none !important;
}

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

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

.text-uppercase {
    text-transform: uppercase;
}

.font-header {
    font-family: var(--font-header);
}

.color-accent {
    color: var(--accent-color);
}

.color-muted {
    color: #aaa;
}

/* Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Common Element Styles */
img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Rarity Colors */
.rarity-common { color: #11b124; }
.rarity-rare { color: #13a3e1; }
.rarity-epic { color: #a335ee; }
.rarity-legendary { color: #ff9900; }

/* Links */
.official-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.official-links .evegalaxy
{
    margin: 0;
}

.eve-logo-link {
    display: flex;
    align-items: center;
    color: var(--accent-color);
}

.eve-logo {
    height: 35px;
    width: auto;
    /* Change the SVG color to match accent-color */
    filter: brightness(0) saturate(100%) invert(65%) sepia(87%) saturate(1288%) hue-rotate(360deg) brightness(102%) contrast(106%);
    transition: filter 0.2s ease;
}

.eve-logo:hover {
    /* New color: #ffaf33 */
    filter: brightness(0) saturate(100%) invert(77%) sepia(32%) saturate(1011%) hue-rotate(332deg) brightness(103%) contrast(102%);
}
