/*
 * Devegency — Lumina Design System & Custom CSS
 *
 * Dark futuristic glassmorphic aesthetic (#09090b), sequence animations,
 * glowing ambient accents, custom scrollbars, and Arabic RTL layout rules.
 */

/* =========================================================================
   1. BASE RESET & SCROLLBARS
   ========================================================================= */
html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    background-color: #09090b;
    color: #ffffff;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Anti-spam honeypot hidden state */
.hp, [data-hp] {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Custom Scrollbar for dashboard/code widgets */
.dash-scroll::-webkit-scrollbar {
    display: none;
}
.dash-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================================================
   2. GLASSMORPHISM & LUMINA CARDS
   ========================================================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.85),
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        inset 0 -1px 1px rgba(0, 0, 0, 0.4);
    border-radius: 1.5rem;
}

.glass-card-hover {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 35px 70px -15px rgba(0, 0, 0, 0.95),
        0 0 30px rgba(16, 185, 129, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.glass-highlight {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

/* =========================================================================
   3. ANIMATION KEYFRAMES
   ========================================================================= */
@keyframes animationIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

@keyframes lumina-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes lumina-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.95); }
}

@keyframes lumina-scan {
    0% { top: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes lumina-shine {
    0% { transform: translateX(-100%); }
    20%, 100% { transform: translateX(100%); }
}

@keyframes lumina-highlight {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 255, 255, 0.05); }
}

@keyframes lumina-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes lumina-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes lumina-load {
    0% { width: 10%; }
    50% { width: 100%; }
    100% { width: 10%; }
}

/* Animation utilities */
.animate-in-hero {
    animation: animationIn 0.8s ease-out 0.1s both;
}

/* =========================================================================
   4. RTL (ARABIC) RULES
   ========================================================================= */
.rtl-mode {
    direction: rtl;
    text-align: right;
}

.rtl-mode .font-geist {
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif !important;
}

.rtl-mode .rotate-90 {
    transform: rotate(-90deg) !important;
}

/* =========================================================================
   5. INTERACTIVE WIDGETS (COUNCIL, PLANNER, AUDIT)
   ========================================================================= */
.tab-active {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}

.metric-bar {
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-glow {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* =========================================================================
   6. ICONIFY & SVG MATHEMATICAL CENTERING
   ========================================================================= */
iconify-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

iconify-icon svg {
    display: block !important;
    margin: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
}
