﻿.palette-area {
    width: 100%;
    height: 100%;
    background: var(--color-grey);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
}

.palette-area h3 {
    margin: 0 0 1rem 0;
    color: var(--color-black);
    font-size: 68px;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}

.palette-sections {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 2rem;
    box-sizing: border-box;
}

.palette-section {
    overflow: visible;
    margin: 0;
    padding: 0;
}

.section-header {
    background: var(--color-grey);
    padding: 1rem 1rem;
    font-weight: 500;
    font-size: 55px;
    color: var(--color-black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    user-select: none;
    border-bottom: 5px solid var(--color-black);
    box-sizing: border-box;
}

.collapse-icon {
    font-size: 50px;
    color: var(--color-black);
}

.collapse-icon.rotated {
    transform: rotate(-90deg);
}

.section-content {
    background: var(--color-grey);
    padding: 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: none;
    overflow-y: visible;
    transition: max-height 0.3s ease, padding 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.section-content.collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.symbol-block {
    min-width: 152px;
    max-width: 192px;
    height: 98px;
    background: var(--color-white);
    border-radius: 35px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
}

.symbol {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 50px;
    color: var(--color-black);
    transition: color 0.3s ease;
    line-height: 1;
}

.symbol-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--color-blue);
}

.symbol-block:hover .symbol {
    color: var(--color-white);
}

.symbol-block:active {
    cursor: grabbing;
    transform: translateY(-2px);
}