/* style.css — Custom styles for AiUpScale */
/* This file was created to prevent a 404 from the <link> reference in main.php. */
/* Add project-wide custom styles here. */

/* GPU Acceleration for non-composited animations */
#tab-demo, #mobile-tab-demo, .animate-sim-pulse {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* CLS Fixes for MathJax containers */
.min-w-max.my-2 {
    min-height: 3rem; /* Pre-allocate space for block equations */
    display: flex;
    align-items: center;
}

.glassmorphism {
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        @keyframes pulse-glow {

            0%,
            100% {
                box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
            }

            50% {
                box-shadow: 0 0 30px rgba(147, 51, 234, 0.7);
            }
        }

        .agent-glow {
            animation: pulse-glow 2.5s infinite;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #020617;
        }

        ::-webkit-scrollbar-thumb {
            background: #1e293b;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #334155;
        }

        /* Draggable circular style for standard sliders */
        input[type=range] {
            -webkit-appearance: none;
            width: 100%;
            background: #1e293b;
            height: 6px;
            border-radius: 4px;
            outline: none;
        }

        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #a855f7;
            cursor: pointer;
            border: 2px solid #ffffff;
            box-shadow: 0 0 12px rgba(168, 85, 247, 0.9);
            transition: transform 0.1s ease, background-color 0.1s ease;
        }

        input[type=range]::-webkit-slider-thumb:hover {
            transform: scale(1.25);
            background-color: #c084fc;
        }

        #modules-matrix td {
            padding-top: 1px !important;
            padding-bottom: 1px !important;
            line-height: 1.1 !important;
        }

    #modules-matrix label {
        margin-top: 0 !important;
    }

        input[type=range]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #a855f7;
            cursor: pointer;
            border: 2px solid #ffffff;
            box-shadow: 0 0 12px rgba(168, 85, 247, 0.9);
            transition: transform 0.1s ease, background-color 0.1s ease;
        }

        input[type=range]::-moz-range-thumb:hover {
            transform: scale(1.25);
            background-color: #c084fc;
        }

        @keyframes sim-pulse {

            0%,
            100% {
                box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
                border-color: rgba(168, 85, 247, 0.4);
            }

            50% {
                box-shadow: 0 0 35px rgba(168, 85, 247, 0.9);
                border-color: rgba(168, 85, 247, 0.8);
            }
        }

        .animate-sim-pulse {
            animation: sim-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }

/* Tutorial Spotlights */
.tutorial-spotlight-border {
    border: 2px solid rgba(168, 85, 247, 0.8) !important;
    box-shadow: 0 0 40px 5px rgba(168, 85, 247, 0.5), inset 0 0 20px rgba(168, 85, 247, 0.3) !important;
}

.tutorial-transition-none {
    transition: none !important;
}

.tutorial-transition-all {
    transition: all 0.7s ease-in-out !important;
}

/* === main.php Fullscreen Overlay === */
.fs-overlay-panel {
    position: absolute !important;
    z-index: 250 !important;
    background: rgba(2, 6, 23, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-color: rgba(147, 51, 234, 0.3) !important; /* purple-500/30 */
    max-height: calc(100vh - 6rem) !important;
    zoom: var(--fs-scale, 1) !important;
    opacity: var(--fs-opacity, 1) !important;
}

#fs-overlay-controls {
    top: 1rem !important;
    left: 1rem !important;
    cursor: grab;
    opacity: var(--fs-opacity, 1) !important;
}

#fs-overlay-controls:active {
    cursor: grabbing;
}

.fs-overlay-left {
    top: auto !important;
    bottom: 1rem !important;
    left: 1rem !important;
    width: 16.5rem !important; /* 25% shorter than 22rem */
}

.fs-overlay-right {
    top: auto !important;
    bottom: 1rem !important;
    right: 1rem !important;
    width: 19.5rem !important; /* 25% shorter than 26rem */
}

.fs-overlay-bottom {
    bottom: 1rem !important;
    left: 18.5rem !important; /* 16.5rem + 1rem padding + 1rem gap */
    right: 21.5rem !important; /* 19.5rem + 1rem padding + 1rem gap */
    width: auto !important;
    transform: none !important;
    padding: 0.5rem !important;
    border-radius: 0.75rem !important;
}

/* === Whitepaper specific styles === */
.glass-panel {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-border-active {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.toc-link {
    transition: all 0.3s ease;
}

.toc-link.active {
    color: #22d3ee;
    border-left-color: #22d3ee;
    padding-left: 1rem;
    background: rgba(6, 182, 212, 0.1);
}

/* Animation Delay Utilities */
.delay-500ms { animation-delay: 0.5s !important; }
.delay-1s { animation-delay: 1s !important; }

/* Custom Animations for Sentience Axioms */
@keyframes custom-ping {
    0% { transform: scale(1); opacity: 0.3; }
    75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes custom-spin {
    to { transform: rotate(360deg); }
}
@keyframes custom-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .7; transform: scale(0.95); }
}
.anim-custom-ping { animation: custom-ping 4s cubic-bezier(0, 0, 0.2, 1) infinite; }
.anim-custom-spin { animation: custom-spin 10s linear infinite; }
.anim-custom-pulse-fast { animation: custom-pulse 1.5s ease-in-out infinite; }
.anim-custom-pulse-2s { animation: custom-pulse 2s ease-in-out infinite; }
.anim-custom-pulse-25s { animation: custom-pulse 2.5s ease-in-out infinite; }
.anim-custom-pulse-3s { animation: custom-pulse 3s ease-in-out infinite; }

/* Hero Logo specific height to match text cap-height */
.h-cap-height { height: 0.75em; }

