/* Variables - Matching User Item Design */
.variables-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.variable-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(145deg, rgba(24, 32, 49, 0.96) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 8px;
    border: 1px solid rgba(129, 140, 248, 0.24);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.28);
    margin-bottom: 0.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.variable-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.variable-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.35);
    border-color: rgba(129, 140, 248, 0.48);
}

.variable-card:hover::before {
    opacity: 1;
}

.variable-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variable-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.variable-identity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.variable-name {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    margin: 0;
}

.variable-value-preview {
    color: #cbd5f5;
    font-size: 0.78rem;
    word-break: break-word;
    font-family: 'Courier New', monospace;
}

.variable-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.variable-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ede9fe;
    background: rgba(139, 92, 246, 0.22);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.variable-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .variable-card {
        grid-template-columns: 1fr;
    }

    .variable-actions {
        justify-content: flex-start;
    }
}
