/* theme.css - Centralized premium stylesheet for Tulu Health */

/* 1. Global display overrides and smooth rendering defaults */
tulu-header, tulu-footer { 
    display: block; 
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 2. Standardized Custom Scrollbar Styles (per Modern CSS Guidelines) */
* {
    scrollbar-width: thin;
    scrollbar-color: hsl(172, 40%, 75%) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background-color: hsl(172, 40%, 75%);
    border-radius: 9999px;
    border: 1px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(172, 60%, 40%);
}

/* 3. Text Selection Styling */
::selection {
    background-color: hsl(172, 40%, 93%);
    color: hsl(172, 60%, 20%);
}

/* 4. Accessibility and Focus Management (per Modern CSS Guidelines) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid hsl(172, 60%, 40%);
    outline-offset: 4px;
}

/* 5. Icon Font Alignment Settings */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* 6. Chic Hover & Micro-Animations */
.drift-up { 
    transform: translateY(-4px); 
    transition: transform 0.3s ease; 
}

.drift-on-hover { 
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease; 
}

.drift-on-hover:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 30px rgba(41, 179, 155, 0.06);
}

/* 7. Premium Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .glass-panel {
    background: rgba(14, 19, 24, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glassmorphic Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(41, 179, 155, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(41, 179, 155, 0.04);
}

/* 8. Chic Button Styles */
.btn-glass {
    background: rgba(41, 179, 155, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(41, 179, 155, 0.2);
    color: hsl(172, 60%, 35%);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-glass:hover {
    background: rgba(41, 179, 155, 0.12);
    border-color: rgba(41, 179, 155, 0.4);
    box-shadow: 0 4px 20px rgba(41, 179, 155, 0.08);
    transform: translateY(-1px);
}

.btn-glass-solid {
    background: rgba(41, 179, 155, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-glass-solid:hover {
    background: rgba(41, 179, 155, 1);
    box-shadow: 0 10px 30px rgba(41, 179, 155, 0.25);
    transform: translateY(-1px);
}

/* 9. Floating Agent Animation Engine */
.agent-node {
    animation: float 8s ease-in-out infinite;
}

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

.agent-node:nth-child(2n) {
    animation-duration: 9s;
    animation-delay: 1s;
}

.agent-node:nth-child(3n) {
    animation-duration: 11s;
    animation-delay: 2s;
}

/* 10. Core Ecosystem Layouts */
.ecosystem-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .ecosystem-container {
        height: 800px;
        flex-direction: row;
        padding-bottom: 0;
    }
}

.agent-cloud {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ethereal-glow {
    box-shadow: 0 0 35px rgba(41, 179, 155, 0.08);
}

/* Navigation Dropdown Menu display */
.dropdown-group:hover .dropdown-menu {
    display: block;
}
