/* --- Resources Section Styles --- */
.resources {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--terminal-dark);
    z-index: 10;
    display: flex;
    flex-direction: column;
    animation: fade-in 0.3s ease-in-out;
    overflow: auto;
}

.resources-header {
    padding: 1rem;
    background-color: var(--terminal-dark);
    border-bottom: 1px solid var(--terminal-green);
    display: flex;
    align-items: center;
}

.terminal-title {
    font-size: 1.2rem;
    color: var(--terminal-green);
    letter-spacing: 1px;
}

.terminal-blinking {
    margin-left: 5px;
    color: var(--terminal-green);
    animation: blink-cursor 1s step-end infinite;
}

.resources-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.terminal-output {
    font-family: var(--matrix-font);
    color: var(--terminal-green);
    line-height: 1.5;
}

.command-line {
    margin-bottom: 1.5rem;
    padding-left: 5px;
    border-left: 2px solid var(--terminal-green);
}

.resource-list {
    list-style-type: none;
    margin: 1.5rem 0;
}

.resource-list li {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(51, 255, 51, 0.05);
    border: 1px solid rgba(51, 255, 51, 0.2);
}

.resource-index {
    display: inline-block;
    width: 30px;
    color: var(--terminal-green);
    font-weight: bold;
}

.resource-name {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.resource-link {
    display: block;
    margin-bottom: 0.5rem;
}

.resource-link a {
    color: #66ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-link a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(102, 255, 255, 0.8);
}

.resource-desc {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Scrollbar styling */
.resources::-webkit-scrollbar,
.resources-content::-webkit-scrollbar {
    width: 16px; /* Wider scrollbar for easier grabbing */
}

.resources::-webkit-scrollbar-track,
.resources-content::-webkit-scrollbar-track {
    background: rgba(0, 20, 0, 0.5);
    border-left: 1px solid var(--terminal-green);
    box-shadow: inset 0 0 10px rgba(0, 60, 0, 0.5);
}

.resources::-webkit-scrollbar-thumb,
.resources-content::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        var(--terminal-green) 0%,
        #003300 50%,
        var(--terminal-green) 100%
    );
    border: 1px solid var(--terminal-green);
    border-radius: 0;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.resources::-webkit-scrollbar-thumb:hover,
.resources-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        #00ff00 0%, 
        #00aa00 50%, 
        #00ff00 100%
    );
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.7);
}

/* Add terminal characters to the scrollbar */
.resources::-webkit-scrollbar-thumb::after,
.resources-content::-webkit-scrollbar-thumb::after {
    content: ">_";
    display: block;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: -1px;
}
