/* 
   BEYOND GOD LEVEL UI/UX POLISH
   TheLionAI.Net - Enterprise Grade Visuals
*/

/* 1. Typography Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";
    
    /* Prevent accidental text selection for app-like feel */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in inputs and text areas */
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 2. Selection Color */
::selection {
    background: rgba(139, 92, 246, 0.3); /* Brand Purple */
    color: #ffffff;
    text-shadow: none;
}

/* 3. Scrollbar Polish */
::-webkit-scrollbar {
    width: 10px;
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* 4. Tap Highlight (Mobile) */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 5. Focus States (Accessibility + Aesthetics) */
:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* 6. Smooth Anchor Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Header offset */
}

/* 7. Image Rendering */
img {
    /* Prevent layout shifts */
    font-style: italic;
    /* Crisp rendering */
    image-rendering: -webkit-optimize-contrast;
}

/* 8. Button Touch Targets (Mobile) */
@media (max-width: 768px) {
    button, a.btn, input, select, textarea {
        min-height: 44px; /* Apple Human Interface Guidelines */
    }
}

/* 9. Glassmorphism Refinement */
.glass-panel, .agent-card, .sector-card {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* 10. Text Gradient Polish */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for older browsers */
    color: #8b5cf6; 
}
