/* JSON Skills Display Styling - Hacker Theme */
.json-container {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: rgba(5, 8, 20, 0.85);
    /* Dark background */
    color: var(--hacker-green);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: auto;
    backdrop-filter: blur(10px);
}

/* Let parent panel-content handle visibility/blur */
.panel:not(.active) .json-container {
    background: rgba(5, 8, 20, 0.2);
    border-color: rgba(0, 255, 65, 0.1);
}

.json-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* JSON Syntax Highlighting - Hacker Green/Blue Palette */
.json-key {
    color: var(--hacker-blue);
    font-weight: 600;
}

.json-string {
    color: #fff;
    /* White for clear values */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.json-number {
    color: var(--hacker-green);
    filter: brightness(1.2);
}

.json-boolean {
    color: #00d4ff;
    font-weight: bold;
}

.json-null {
    color: #888;
}

.json-bracket {
    color: var(--hacker-green);
    font-weight: bold;
}

.json-comma {
    color: rgba(0, 255, 65, 0.5);
}

/* Hover effects for JSON elements */
.json-line {
    transition: background 0.2s ease;
    padding: 2px 4px;
    margin: 0 -4px;
    border-radius: 3px;
}

.json-line:hover {
    background: rgba(0, 255, 65, 0.1);
    color: #fff;
}

/* Skill bars for visual representation */
.skill-bar {
    display: inline-block;
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-left: 10px;
    position: relative;
    vertical-align: middle;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.skill-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00d4ff);
    box-shadow: 0 0 10px var(--hacker-green);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Typing animation for JSON */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.json-container.animate {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

/* Scrollbar styling - Hacker Green */
.json-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.json-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.json-container::-webkit-scrollbar-thumb {
    background: var(--hacker-green);
    border-radius: 4px;
    box-shadow: 0 0 5px var(--hacker-green);
}

.json-container::-webkit-scrollbar-thumb:hover {
    background: var(--hacker-blue);
}

/* Section headers in JSON style */
.json-section-header {
    color: var(--hacker-blue);
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--hacker-green);
}

/* Comment style for JSON */
.json-comment {
    color: rgba(0, 255, 65, 0.6);
    font-style: italic;
    opacity: 0.8;
}