/**
 * Selection Studio — Explorer Sidebar
 * Location: /studio/css/explorer.css
 */

.timeline-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    background: var(--bg-panel, #0f171e);
}

#cms-blocks-list {
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.explorer-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.explorer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.explorer-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--muted, rgba(255, 255, 255, 0.4));
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.explorer-title {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 670;
    letter-spacing: -0.015em;
}

.explorer-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 600;
}

/* Tree list container — Uklonjen stari padding od 99px! */
.explorer-tree {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

/* Individual Tree Nodes */
.explorer-node {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    /* 👈 Zategnuto na kompaktnih 40px */
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font: inherit;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.explorer-node:hover {
    background: rgba(255, 255, 255, 0.035);
}

.explorer-node.is-active {
    background: rgba(212, 180, 131, 0.08);
    border-color: rgba(212, 180, 131, 0.25);
    color: #ffffff;
}

.explorer-foundation-node {
    margin-bottom: 4px;
}

.explorer-node-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.explorer-node-index {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    font-family: monospace;
    font-weight: 600;
}

.explorer-node-icon {
    color: var(--gold, #d4b483);
    font-size: 13px;
}

.explorer-node-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.explorer-node-title {
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-node.is-active .explorer-node-title {
    color: #ffffff;
    font-weight: 600;
}

.explorer-node-meta {
    font-size: 10px;
    color: var(--muted, rgba(255, 255, 255, 0.4));
}

.explorer-node-fixed {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold, #d4b483);
    padding: 2px 6px;
    background: rgba(212, 180, 131, 0.1);
    border-radius: 4px;
}

.explorer-drag-handle {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    cursor: grab;
    padding: 0 4px;
}

.explorer-capsule-node:hover .explorer-drag-handle {
    color: rgba(255, 255, 255, 0.5);
}

.explorer-capsule-node.is-dragging {
    opacity: 0.4;
}

.explorer-archive-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: color 120ms ease, background-color 120ms ease;
}

.explorer-capsule-node:hover .explorer-archive-button {
    color: rgba(255, 255, 255, 0.5);
}

.explorer-archive-button:hover {
    background: rgba(255, 105, 97, 0.15);
    color: #ff6961;
}

/* Drag Drop Zones */
.explorer-drop-zone {
    height: 4px;
    position: relative;
    margin: 2px 0;
}

.explorer-drop-zone.is-active::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--gold, #d4b483);
    border-radius: 999px;
}

.explorer-empty-state {
    padding: 32px 16px;
    text-align: center;
    color: var(--muted, rgba(255, 255, 255, 0.4));
    font-size: 12px;
}