/* Theme Name: KamSoft IDE Theme
 * Author: KamSoft Consultants
 * Version: 2.4.0
 */

/* Tailwind is loaded via CDN in header.php */

/* =========================================
   Global/Shared Styles
   ========================================= */
body {
    background-color: #050505;
}

/* Custom Logo Constraint */
.custom-logo-wrapper img,
.custom-logo-link img,
.custom-logo {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    max-width: 100% !important;
    object-fit: contain;
}

.lux-grid {
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.os-window {
    background: rgba(15, 17, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.os-window:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.beam {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--beam-color), transparent);
    filter: blur(4px);
    opacity: 0.6;
}

.typing-container {
    display: inline-grid;
    place-items: center start;
}

.typing-text {
    overflow: hidden;
    border-right: 3px solid #8b5cf6;
    white-space: nowrap;
    margin: 0;
    letter-spacing: 0.02em;
    width: 0;
    padding-right: 2px;
    /* Small padding to prevent clipping but minimize gap */
    animation:
        typing 3.5s steps(26, end) forwards,
        /* Matches char count closer */
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%;
        /* Exact width */
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #8b5cf6
    }
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f111a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes load-bar {
    0% {
        width: 10%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 40%;
    }
}

.animate-load {
    animation: load-bar 4s ease-in-out infinite alternate;
}

.container-3d {
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.container-3d:hover {
    /* Base hover effect defined here, but specific rotation classes override it */
    transform: perspective(1000px) scale(1.01);
}

.perspective-container {
    perspective: 2000px;
}

.rotate-y-12 {
    transform: rotateY(12deg) rotateX(5deg);
}

.rotate-y-neg-12 {
    transform: rotateY(-12deg) rotateX(5deg);
}

.hover\:rotate-y-12:hover {
    transform: rotateY(12deg) rotateX(5deg) !important;
}

.hover\:rotate-y-neg-12:hover {
    transform: rotateY(-12deg) rotateX(5deg) !important;
}

.syntax-line::before {
    counter-increment: line;
    content: counter(line);
    display: inline-block;
    width: 2em;
    margin-right: 1em;
    color: rgba(255, 255, 255, 0.2);
    text-align: right;
    user-select: none;
}

.code-editor {
    counter-reset: line;
}

.wireframe-grid {
    background-size: 20px 20px;
    background-image:
        linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
}

/* =========================================
   Contact Page Styles
   ========================================= */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 12px;
    background: #8b5cf6;
    cursor: pointer;
    margin-top: -10px;
    border: 1px solid #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    border-radius: 2px;
}

input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 12px;
    background: #8b5cf6;
    cursor: pointer;
    border: 1px solid #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    border-radius: 2px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.data-column {
    position: absolute;
    top: 0;
    width: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 12px;
    color: rgba(59, 130, 246, 0.15);
    text-align: center;
    user-select: none;
    overflow: hidden;
    white-space: pre-wrap;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.terminal-input:focus {
    outline: none;
    border-bottom-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.05);
}

.text-glow-primary {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.text-glow-accent {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* =========================================
   Insights Hub / Blog Styles
   ========================================= */
.abstract-gradient-1 {
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
        linear-gradient(45deg, #0f111a 0%, #161b2e 100%);
}

.abstract-gradient-2 {
    background: radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0f111a 0%, #1a162e 100%);
}

.article-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.article-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article-content strong {
    color: #fff;
    font-weight: 600;
}

.syntax-hl {
    color: #a78bfa;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    background: #0d1117;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3b82f6;
}

.article-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.article-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.article-content ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

.progress-indicator.active {
    color: #3b82f6;
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
}

/* =========================================
   Arsenal / IDE Styles
   ========================================= */
.ide-panel {
    background: rgba(12, 14, 20, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ide-main {
    background: rgba(5, 5, 5, 0.9);
}

.tech-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px -10px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.stability-graph-bar {
    width: 4px;
    background: #1f2937;
    border-radius: 1px;
    display: inline-block;
    margin-right: 1px;
    position: relative;
    overflow: hidden;
}

.stability-graph-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #3b82f6;
    transition: height 0.5s ease;
}

.beta-stripe {
    background: repeating-linear-gradient(45deg,
            rgba(139, 92, 246, 0.1),
            rgba(139, 92, 246, 0.1) 10px,
            rgba(139, 92, 246, 0.05) 10px,
            rgba(139, 92, 246, 0.05) 20px);
}

/* Single Post Code Block */
.code-block {
    font-family: 'JetBrains Mono', monospace;
    background: #0d1117;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3b82f6;
}

/* =========================================
   Sidebar Widget Styles (System Log Look)
   ========================================= */
.widget-area-wrapper .widget ul,
.widget-area-wrapper .wp-block-latest-posts__list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.widget-area-wrapper .widget li,
.widget-area-wrapper .wp-block-latest-posts__list li {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    display: flex;
    flex-direction: column;
}

/* Timeline Dot */
.widget-area-wrapper .widget li::before,
.widget-area-wrapper .wp-block-latest-posts__list li::before {
    content: "";
    position: absolute;
    left: -21px;
    /* Aligns with the border-l of the wrapper */
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #050505;
    /* background-dark */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.widget-area-wrapper .widget li:hover::before,
.widget-area-wrapper .wp-block-latest-posts__list li:hover::before {
    background-color: #8b5cf6;
    /* accent */
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Links */
.widget-area-wrapper .widget a,
.widget-area-wrapper .wp-block-latest-posts__list a {
    display: block;
    font-size: 0.875rem;
    /* text-sm */
    color: white;
    line-height: 1.25;
    transition: color 0.2s;
    text-decoration: none;
}

.widget-area-wrapper .widget a:hover,
.widget-area-wrapper .wp-block-latest-posts__list a:hover {
    color: #60a5fa;
    /* primary-glow */
}

/* Post Date */
.widget-area-wrapper .widget .post-date,
.widget-area-wrapper .wp-block-latest-posts__post-date {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    /* ~10px */
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    order: -1;
    /* Move date above title */
}