:root {
    --bg-dark: #141728; /* Dark navy */
    --bg-darker: #0a0b1a; /* Darker navy */
    --bg-light: #1a1f3a; /* Medium navy */
    --bg-lighter: #252a45; /* Lighter navy */
    --text-primary: #ffffff; /* White */
    --text-secondary: #cccccc; /* Light gray */
    --accent-color: #00ffbd; /* Solana teal */
    --accent-secondary: #9945FF; /* Solana purple */
    --border-color: #008f75; /* Dark teal */
    --transition-speed: 0.3s;
}

.dictionary-container {
    max-width: 1000px;
    margin: 1.5rem auto;
    padding: 1.25rem;
    background-color: var(--bg-dark);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.dictionary-container h1 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.125rem solid var(--border-color);
    text-shadow: 0 0 8px rgba(0, 255, 189, 0.3);
}

/* Category Styles */
.dictionary-category {
    margin-bottom: 1rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: var(--accent-color);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-speed) ease;
}

.category-header:hover {
    background-color: var(--bg-lighter);
    box-shadow: 0 0 10px rgba(0, 255, 189, 0.2);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-speed) ease;
    color: var(--accent-secondary);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease;
}

.dictionary-category.active .category-content {
    max-height: none;
    overflow-y: auto;
}

.dictionary-category.active .toggle-icon {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.category-content ul {
    list-style-type: none;
    padding: 0 1rem 1rem;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.dictionary-term {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background-color: var(--bg-dark);
    border-radius: 0.375rem;
    border-left: 0.1875rem solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.dictionary-term:hover {
    background-color: var(--bg-lighter);
    border-left-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(0, 255, 189, 0.1);
}

.dictionary-term strong {
    color: var(--accent-color);
    font-weight: bold;
}

.dictionary-term .definition {
    color: var(--text-secondary);
    line-height: 1.5;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dictionary-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .category-header {
        padding: 0.75rem;
    }
    
    .category-content ul {
        padding: 0 0.75rem 0.75rem;
        max-height: 400px;
    }
    
    .dictionary-term {
        padding: 0.5rem;
    }
}

/* Animation for term hover */
@keyframes termGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 189, 0); }
    50% { box-shadow: 0 0 10px rgba(0, 255, 189, 0.2); }
}

.dictionary-term:hover {
    animation: termGlow 2s infinite;
}