/* 
   Theme Enhancements - TheLionAI
   Adds premium visual effects, glassmorphism, and modern UI elements.
*/

/* ==========================================
   Global Enhancements
   ========================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ==========================================
   Typography & Text Effects
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ==========================================
   Button Enhancements
   ========================================== */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* ==========================================
   Card Enhancements (Glassmorphism)
   ========================================== */

.card, .feature-card, .agent-card, .metric-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}

.card:hover, .feature-card:hover, .agent-card:hover, .metric-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
    border-color: var(--primary-light);
}

/* ==========================================
   Hero Section Enhancements
   ========================================== */

.hero, .agent-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.15), transparent 40%);
}

.hero::before, .agent-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.15;
    animation: pulse-glow 10s infinite alternate;
    pointer-events: none;
}

.hero-title, .agent-hero h1 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    color: var(--accent-light);
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.1; }
    100% { transform: scale(1.2); opacity: 0.2; }
}

/* ==========================================
   Agent Card Specifics
   ========================================== */

.agent-card {
    overflow: hidden;
}

.agent-card img {
    transition: transform 0.5s ease;
}

.agent-card:hover img {
    transform: scale(1.05);
}

.agent-card .status-badge {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ==========================================
   Input Fields
   ========================================== */

input, textarea, select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Footer
   ========================================== */

footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-darker);
}
